violation « Delete « JPA Q&A





1. DERBY:DELETE on table caused a violation of foreign keys    forum.hibernate.org

Hi, The following code works fine with mysql, but when I try this on derby i get exceptions: ( each Tag has two sets of files ) Tags.java Code: @Entity @Table(name="TAGS") public class Tags implements Serializable { @Id @GeneratedValue(strategy=GenerationType.AUTO) public long getId() { return id; ...

2. Design tips? Warning on delete against constrraint violation    forum.hibernate.org

Hello, I'm trying to come up with a design in and around my Dao layer so as to be able to warn the end user that the entity he is about to delete, cannot be deleted because it is being referenced by another entity. As a rookie in Hibernate I don't really know how to go about it. Should I have ...