many-to-one
JoinColumn name not used in sql
I have a problem with mapping many-to-one relationship without exact foreign key constraint set in database. I use OpenJPA implementation with MySql database, b开发者_如何学Pythonut the problem is wit[详细]
2022-12-28 05:57 分类:问答JPA @OneToMany and composite PK
I am working on a JPA project. I need to use a @OneToMany mapping on a class that has three primary keys. You can find the errors and the classes after this.[详细]
2022-12-28 05:24 分类:问答hibernate foreign key mapping many-to-one
I have been working on it for quite a while, but still can\'t figure out what\'s wrong with my code. Each Service has multiple profiles, but each profile only has one Service.[详细]
2022-12-24 02:56 分类:问答nhibernate mapping does not save/insert keys of inserted subclasses
After having changed around my mappings a bit ( see my other question about cascade-delete for reasons) , i tried inserting a completely new object and all its subclasses.[详细]
2022-12-22 03:37 分类:问答How do I left join tables in unidirectional many-to-one in Hibernate?
I\'m piggy-backing off of How to join tables in unidirectional many-to-one condition?. If you have two classes:[详细]
2022-12-21 20:01 分类:问答Hibernate: Many-to-one using Formula
I hope someone can help me find an answer. I\'m working with a legacy database and I can\'t change any of the preexisting tables, because other apps depend on them.[详细]
2022-12-21 01:27 分类:问答Hibernate many to one delets all parents when a child is deleted
I have Country and State objects. I intend to have unidirectional many to one relationship from State to Country. I don\'t want to store any references to States in Country I have defined mapping as b[详细]
2022-12-17 18:23 分类:问答Many-to-one mapping (creating equivalence classes)
I have a project of converting one database to another. One of the original database columns defines the row\'s category. This column should be mapped to a new category in the new database.[详细]
2022-12-14 02:07 分类:问答NHibernate Many to One / One to One with differing keys
Hey all,I\'m kicking the tires on NHibernate and have a conoundrum I have been scratching my head over for a bit now, working with a legacy database with some fairly complex relationships.[详细]
2022-12-12 14:29 分类:问答LINQ to SQL - retrieve object, modify, SubmitChanges() creates new objects
I\'ve been battling this for a while. I\'m trying to implement a many to one association. I have a bunch of rows in a table, called readings. These accumulate over time, and every now and then I want[详细]
2022-12-11 14:45 分类:问答