[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB3 em.remove() failed
kingofhawks
do-not-reply at jboss.com
Wed Aug 9 08:52:48 EDT 2006
Hi ALL:
I'm newer to JBoss EJB3 and Hibernate.
I encountered such a problem.I have a one-to-many relationship between class A and B,when i delete one B object.it will raise exception org.hibernate.exception.ConstraintViolationException: could not delete....
And i use HSQL as default DB,i found that it has generated temp table A_B ,i guess it is the root cause that B object can not be deleted.Because that temp table will refer to table B.Someone can tell me how to resolve this problem?Or just to let Hibernate not generate temp tables?
Thanks!
Kingofhawks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964041#3964041
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964041
More information about the jboss-user
mailing list