facebook

Creating Hibernate mappings for associations

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232596 Reply

    Hello,
    I generated a Hibernate mapping file and its classes for a simple database table. That worked fine.
    Then I created a new table with a foreign key to the first one and tried to generate the Hibernate mapping file for the second table. That worked either, but there was no association visible in the generated mapping file.
    My questions now:
    1.What do I have to do to generate (simple) associations in general?
    2.Which steps are neccessary to generate one-to-many associations?

    Thank you in advance!

    Cheers, Sven

    #232607 Reply

    Hello,
    I solved the problem – it´s very easy: you can simply edit the generated classes and xml-files appropriate to the examples in the book “Hibernate in Action” which is the best book regarding databases and hibernate I ever read.

    Cheers, Sven

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Creating Hibernate mappings for associations

You must be logged in to post in the forum log in