Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Hibernate3.2, please correct me  RSS feed

 
clojure forum advocate
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
Posts: 17344
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
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
Posts: 17344
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
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!