I've a 1:n relation defined using the persistence api. One customer has n delivery adresses. In the history object this appears as customer object who has a list of delivery addresses. Those delivery addresses themself also have a customer attached and that customer a list of delivery addresses and so on and so forth. While this is semantically correct im wondering if I did something wrong or is this correct? |
I agree that this may look funny, but it is correct. (It's a bidirectional Relationship in Hibernate) To have a code level look at it you can catch a glimpse at the generated dataClasses in the Also have a look at this answer on StackOverflow. |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 17.04.2014 at 08:43
Seen: 2,320 times
Last updated: 17.04.2014 at 16:17