Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!