Joined: Fri Oct 14, 2005 9:55 am Posts: 5 Location: Bergen, Norway
|
Hi - I'm on the 3.6.10 version of hibernate entitymanager/core. In earlier versions I could add the hibernate-annotations to get hold of @OnDelete and get properly DDL generated with on cascade delete.
If I add hibernate-annotations to the application I get a bootup fail: Caused by: java.lang.NoSuchMethodError: org/hibernate/cfg/AnnotationConfiguration.getPersisterClassProvider()Lorg/hibernate/persister/PersisterClassProvider; at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1055) ~[hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final] at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:689) ~[hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73) ~[hibernate-entitymanager-3.6.10.Final.jar:3.6.10.Final] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225) ~[spring-orm-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) ~[spring-orm-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479) ~[spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419) ~[spring-beans-3.0.7.RELEASE.jar:3.0.7.RELEASE] ... 42 common frames omitted
And if I remove it the DDL will be generated without cascading delete (which is an error).
So - what to do?
|
|