Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Rep Power

    Default Association Mappings

    I am following the tutorial
    Hibernate O/R Mappings

    It says there are four types of association mappings:

    I always keep forgetting on which side the extra field in the table should be added. Is there any way of remembering it?

  2. #2
    kire9dk is offline Member
    Join Date
    Sep 2009
    Rep Power

    Default Re: Association Mappings

    The "extra" key of the maping is on the many-to-one mapping or on one of the one-to-one mappings.
    Read about DB, and after that you will never have question like this. BTW for one-to-one mappings you can put on any side the mapping column, but not on bout.
    And for this the decision is all your, you will put it, on the side where you will need it.

Similar Threads

  1. hibernate association fetch
    By in forum Advanced Java
    Replies: 1
    Last Post: 12-03-2010, 10:30 PM
  2. association vs composition vs aggreagation
    By waqar100 in forum New To Java
    Replies: 2
    Last Post: 06-10-2010, 11:17 PM
  3. Difficulties with many-to-many association
    By berlindutza in forum Web Frameworks
    Replies: 0
    Last Post: 03-03-2010, 05:53 PM
  4. UML association,aggregation etc generator
    By alexander.s in forum New To Java
    Replies: 1
    Last Post: 09-18-2008, 07:27 PM
  5. Replies: 1
    Last Post: 07-06-2007, 07:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts