Example: One to many & Many to One..

Discussions

General J2EE: Example: One to many & Many to One..

  1. Example: One to many & Many to One.. (1 messages)

    Hi All,

    Can anyone send me a sample example for Hibernate One to many & Many to One..
    Also, if there are any links, from where i can download the example, please point me to that..

    Thanks a lot,
    Shridhar..
  2. Hibernate links/examples[ Go to top ]

    Hi,

    Hibernate has online docs here that I've used a few times and they seem to be pretty good.
    http://www.hibernate.org/hib_docs/v3/reference/en/html/index.html

    In particular about your n:m and m:n examples, you can find them here

    many to one
    http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-declaration-manytoone

    one to many
    http://www.hibernate.org/hib_docs/v3/reference/en/html/collections.html#collections-onetomany

    HTH,
    Thomas