This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate and persistence  RSS feed

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB we have CMP and BMP. Here for Hibernate does it utilize a mechanism more like CMP or BMP ??
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well in EJB 3.0 it would be more like CMP. But either way, you just have a Session and DTOs that are mapped to the database, and Hibernate will generate SQL, or you can use HQL or write your own SQL that executes through the Session.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!