"fhh" wrote : Have you looked up which entity the error message refers to and to which constraint? | | Another problem might be that your entityManager is not in sync with the database. | | | Regards | | Felix
Hi Felix, the error message refers to member sender of entity ChatMessage. I looked up the constraint in my database and there it says: | CONSTRAINT fk278c74e4b6f3dc65 FOREIGN KEY (sender) | REFERENCES users (id) MATCH SIMPLE | ON UPDATE NO ACTION ON DELETE NO ACTION, | I wonder about "ON DELETE NO ACTION". Shouldn't it be "ON DELETE CASCADE"? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034694#4034694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034694 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user