Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO by Hibernate reverse engineering

 
Nazmul Bhuiyan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate reverse engineering generates POJO i.e. Person.java and DAO PersonHome.java.
How do I use method findById(id) of PersonHome.java to get the Person details form the database?
I can use the method of my own DAO.
Some code example would be helpful.

Regards
 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why your DAO is called PersonHome.java? Shouldn't be PersonDAO?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Hanna Habashy:
Why your DAO is called PersonHome.java? Shouldn't be PersonDAO?


It was created by Hibernate reverse engineering tool, so he didn't create that name.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic