1. why is unidirectional one-to-many using foreign key forum.hibernate.org |
2. unidirectional one-to-many accociation on foreign key exampl forum.hibernate.orgMaybe it's just me, but I'm finding the xml mappings for Hibernate to be impossible. If someone could help out with this example, I'd be grateful. I have two tables AREA(area, area_id) -- They key is the whole row DISTRICT (district_id, area_id, district) -- They key is the whole row My pojo District object wants to know it's district_id, area_id, district, ... |
3. unidirectional one-to-many, but don't use pk forum.hibernate.orgHallo, I have the following situation: table1{a:String PK, b:string, c:string} table2{a:string PK, b:string PK, c:string} What I need ist an association like this: table1.b = table2.b When you look at it unidirectional, it is a one-to-may relationship. What is my problem? I don't know how to tell hibernate, that it should use the column b in table1 for the join. As ... |
4. unique-key/index (multi) and unidirectional 1-to-m problem forum.hibernate.orgI'm using JUnit to specify and run my out-of-container (unit and) integration tests. When kicking of my testcases I let hbm2ddl generate the db schema ("create" option) from my mapping files. So far, so good, everything works fine. It's a good procedure for out-of-container JUnit (unit and) integration testing: hibernate produces the schema in the db, so I don't have to ... |
5. Unidirectional OneToOne with foreign key on opposite side forum.hibernate.orgHi, is there a way to accomplish this mapping: * 2 classes: Person and Address * Person references Address (to-one), but not the other way round * 2 tables: PERSON and ADDRESS * atypical foreign key PERSON_ID in table ADDRESS references PERSON.ID Is this mapping possible without having to declare a property "person" in class "Address"? Kind regards, Frank |