1. Checking if a duplicate Child Object already exists db when pushing Graph stackoverflow.comConsidering Hibernate 3, I have a parent table, and a child table, linked by a foreign key. I declare a many-to-one association into parent hbm file with a cascade all property. I first persit ... |
2. 1-to-many + inheritance not returning full graph forum.hibernate.orgI have the following relationships: Class P can have 0 or more Class A Class M inherits from A, and can have 0 or more Class U I can insert this graph just fine. Everything shows up in the database correctly. However, when I do a session.get(P.class, oid) I get everything but the U collection. P6Spy indicates that there is no ... |
3. Persisting a Parent/Child Object Graph forum.hibernate.orgI'm looking to save a basic Parent/Child object graph, where the Parent's Primary Key is not determined before the saving the Parent or the Child records (I'm using MySQL's auto increment feature that gives the next Primary Key for the Parent record upon record insert). With this in mind, when Hibernate attempts to persist the entire object graph, it successfully inserts ... |
4. Write map for Graphs forum.hibernate.orgHi! In my database is 2 tables: Keywords ---------- ID INTEGER Keyword VARCHAR and Links ---------- Keyword1 INTEGER Keyword2 INTEGER So there is a keywords and some keywords are synonymous (they are linked in Link table). The trouble is that synonyms can be linked in two directions. Example there is keywords A and B, (they are synonyms). In Links table they ... |