reset password
Author Message
talisunep
Posts: 140
Posted 21:39 Apr 23, 2013 |

 

professor for the Hbm2ddl.java file i am getting error...

The import org.hibernate.ejb.Ejb3Configuration cannot be resolved
 

i did a fix project set up and the error goes away but on running the Hbm2dll file to generate my ddl file i get an error class not found error on line 22 which has


  Configuration cfg = (new Ejb3Configuration()).configure(

            "hibernate-examples", new HashMap<String, Object>() )

            .getHibernateConfiguration();

am i doing something wrong with the  org.hibernate.ejb.Ejb3 import?

talisunep
Posts: 140
Posted 21:58 Apr 23, 2013 |

had to update my dependency as the version i was using has throwing up the error
updated to (from older beta version) which takes care of the error.. its working fine now..


<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.2.0.Final</version>
</dependency>