Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Hibernate3.2, please correct me  RSS feed

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