syigit / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

Hibernate 4 is unsupported #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
NOTE: If you have a question rather than a bug report or feature request,
please post at http://groups.google.com/group/java-generic-dao .

What steps will reproduce the problem?
1. Create project with hibernate 4
2. attempt to run
3.

What is the expected output? What do you see instead?
Project should run normally.
NoSuchMethodErrors are thrown due to changes in Hibernate API

What version of the product are you using? On what operating system?
1.1.0

Please provide any additional information below.
Example:
java.lang.NoSuchMethodError: 
org.hibernate.metadata.ClassMetadata.getIdentifier(Ljava/lang/Object;Lorg/hibern
ate/EntityMode;)Ljava/io/Serializable;
    at com.googlecode.genericdao.search.hibernate.HibernateEntityMetadata.getIdValue(HibernateEntityMetadata.java:63)

Original issue reported on code.google.com by cdombro...@gmail.com on 27 Feb 2012 at 3:02

GoogleCodeExporter commented 8 years ago
I am trying to switch to hibernate 4 and I am facing a similar issue except it 
gives me a slightly different error:
java.lang.NoSuchMethodError: 
org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/classic/Session;
It is coming from HibernateBaseDAO.getSession() but reflection gets on the way 
and I am still digging trying to find the root of it.

Original comment by che...@gmail.com on 7 Apr 2012 at 5:00

GoogleCodeExporter commented 8 years ago

Original comment by dwolvert on 15 Feb 2013 at 2:03