• Post Reply Bookmark Topic Watch Topic
  • New Topic

DAO by Hibernate reverse engineering  RSS feed

 
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: 17309
11
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!