1

I want to know the key differences I need to take care of if I want to switch to Hibernate 4.0 from Hibernate 3.6 ? Does Hibernate 4.0 support hbm.xml or do I need to use JPA for mapping?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197

2 Answers2

2

Hibernate 4 still supports ORM mapping via XML (hbm.xml). As suggested by the mapping section in this basic hibernate 4 tutorial.

Kevin Bowersox
  • 93,289
  • 19
  • 159
  • 189
  • @Ranna glad I could help. You may run into some small issues, but I'm guessing their not going to completely break their interface. – Kevin Bowersox Dec 01 '12 at 10:05
1

You should read the migration guide https://community.jboss.org/wiki/HibernateCoreMigrationGuide40

bmoc
  • 652
  • 7
  • 7