1. Add index/constraint issue after mySQL import DB generation forum.hibernate.orgHi, I have a bit of a problem with the constraints in my database and how hibernate manages them asd would appreciate andy help or just a place to go to find the solution, thanks. This is how I got to the problem.. 1. created schema with hibernate 2. added data in to schema 3. need to export partial tables from ... |
2. many-to-one generating FK constraint with not-null=false forum.hibernate.org |
3. unique constraint violation forum.hibernate.orgHello I use my persistence manager to remove an entity object, and then I create a new object with identical properties to the one that I just removed. When I attempt to have the entity manager commit, it violates the uniqueness constraint on my database. It appears hibernate is adding the new object to the database before deleting the original. Is ... |
4. False Integrity Constraint Violation forum.hibernate.orgNewbie Joined: Tue Jul 14, 2009 2:16 pm Posts: 6 I have a Pojo annotated as follows: Code: @Entity @Table(name="detail_view_data") public class DetailViewResponse { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(unique=true,nullable=false,updatable=false,name="pd_id") private long id; @JoinColumn(name="person_id",unique=false) @OneToOne(optional=false,fetch=FetchType.LAZY) private Person subject; ... |
5. Object relationship without referential integrity constraint forum.hibernate.orgIs it possible with Hibernate to associate 2 java objects but still there is no relationship between the two entities in database? If yes, then please point me to appropriate references on how to do this. In my case I have got a "location" entity which I want to be common for "Users" & "Contacts" in my application. For this one ... |
6. Non logical constraints for deleting entity forum.hibernate.orgHello everybody, if anybody could tell me how to organize logical constraints at Hibernate side for relations between models. The problem is that we dont have phisicaly it at database side and should not create them. We have 2 entities: Shop and City, Shop have not nullable City If user removes City, which affiliate to some Shop, it not give any ... |
7. Hibernate Help .ORA-02292: integrity constraint violated child record found forums.oracle.comok here is what i got into.. deleting parent deletes all of its childs only when ON DELETE CASCADE is enabled at database level.It doesn't seem to work otherwise even if i set cascade="all-delete-orphan" in the parent.hbm.xml. My question is when i enable ON DELETE CASCADE at Database level,the delete works even if i set cascade="save-update" in parent.hbm.xml does this mean ... |