• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate3.2, please correct me

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
After having a look at Hibernate.org , I was confused and I made the following assumptions and I hope you will help me to conform/correct them :
1. Hibernate3.2.2.zip is our old Hibernate friend (Session, SessionFactory ...)
2. Hibernate-annotations-3.2.1.zip allow use to specify mappings using annotations instead of *.hbm.xml files.
3. hibernate-entitymanager-3.2.1.zip is an implementation of JPA, so instead of working with Session, SessionFactory , we work with PersistenceManager and other JPA guys.
Bingo ? or not ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but I also thought for hibernate 3.2 it includes all the jars for Annotations and JPA.

Mark
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
Yes, but I also thought for hibernate 3.2 it includes all the jars for Annotations and JPA.

Mark

includes here is just include, right ?
I mean, I can still using Hibernate's API (such as Session) if I don't want to use JPA ?
hibernate 3.2 distribution doesn't force me to JPA.
Sounds as a stupid question, huh ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly, consider Hibernate a superset of JPA, it implements JPA, but also has a lot more features to it.

If you stick with the JPA apis, then it just makes your code more portable to use say some other JPA implementaion like TopLink for instance.

But all the Hibernate classes are all there for you to use too.

Mark
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!