1. Hibernate unidirectional one to many association - why is a join table better? stackoverflow.comIn this document (scroll down to the Unidirectional section): http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#entity-mapping-association-collections it says that a unidirectional one-to-many association with a join table is much preferred to just using a foreign key column ... |
2. Hibernate: unidirectional, one-to-many associations coderanch.comThis post is about the hoops I jumped through in order to get Hibernate to set up a unidirectional, one-to-many association mapping to a java.util.List, something I thought would be common, and thus well-supported. In Hibernate in Action, on page 232 I read: Good uses for unidirectional one-to-many associations are uncommon in practice Whoah! Here's my typical example of a one-to-many ... |
3. Merge not deleting a unidirectional one-to-one association forum.hibernate.org |
4. Question Regarding Accessing UniDirectional Associations. forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.0.5 My question is a more general question. I have a class A linked through a unidirectional 1-* association to class B. At the DB level, i have a foreign key in the class B which is the primary key of class A. Staying at Class B i want to ... |
5. Unidirectional one-to-many association forum.hibernate.orgThanks for the answer. I'm not sure the FK is so "polluting" in our case. What about performance issues? Isn't a join table less efficient for performance than just a FK? I think it would be useful if the reference documentation could explain the pros and cons of each of the options, instead of just saying it is "not recommended". Amlie ... |
6. unidirectional association with table per concrete class forum.hibernate.orgI have abstract class A and its 2 concrete subclasses ASub1 and ASub2. There is another class B associated with A. If the association is bidirectional, then we can use |
7. help with unidirectional one-to-many association forum.hibernate.orgHello, I've got an unidirectional one-to-many association on a join table like the example of the documentation. Hibernate version: 3.0.5 Mapping documents: Code: |
8. Need help with one to one unidirectional association forum.hibernate.orgHibernate version:3.1 Mapping documents: |
9. Unidirectional many-to-one association forum.hibernate.orgAuthor Message j4y Post subject: Unidirectional many-to-one association Posted: Thu Jan 25, 2007 9:52 pm Newbie Joined: Thu Jan 25, 2007 9:24 pm Posts: 2 Hey everyone, I'm having a problem creating a simple unidirectional many-to-one association in Hibernate. If there is an example of hibernate mappings and code that I can reference, I would gladly check out those ... |
10. unidirectional one-to-many association forum.hibernate.org |
11. multiplicity of unidirectional association forum.hibernate.orgHi, Someone please explain me this - From chapter 1 page 17.. It isnt possible to determine the multiplicity of a unidirectional association by looking only at the Java classes. Then the author says .... Java associations can have many-to-many multiplicity. For example, the classes could look like this: public class User { private Set billingDetails; ... } public class BillingDetails ... |
12. unidirectional many-to-one association on a join table forum.hibernate.orgHibernate version: 3.2.4.sp1 Name and version of the database you are using: MySQL 5.0.27 Hi, I'm trying to model a unidirectional many-to-one association on a join table (as per chapter 7.3.2 of the documentation): Code: |
13. Unidirectional one-to-many association, again! forum.hibernate.orgThese are examples that I tried: 1) Based on 7.2.3. example from documentation: Code: |