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

Hibernate Design Pattern

 
raj baig
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i would like to know what design pattern will hibernate follows
is DTO or DAO or other.
can you explaing how.

thangs
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DTO is an antipattern designed because you could not transfer Entity Beans to the client. A Hibernate Mapped Object could be considered a DTO, since it can be transferred to a client. Also in EJB3, Hibernate 3 is an implementation of Entity Beans, which can now be transferred to the client. DAO is just having classes that do the Data Accessing like updating and running queries, and while DAOs might use Hibernate to do the data access, they aren't mutually exclusive.

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