facebook

Many-to-many in the hibernate generation

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #220696 Reply

    Hi there,

    #1 – MyEclipseIDE is amazing. I absolutely love it – it has saved me HOURS and I feel your team is doing an amazing job. The $$ was well worth it (in fact, you’re probably under-charging).

    #2 – is there any way to generate many-to-many or one-to-many (not many-to-one) collections using the db explorer & generate hibernate mapping files functionality, automatically?

    Many thanks.

    -Michael

    #220711

    Riyad Kalla
    Member

    1) Thank you for the kind words, this is what makes it all worth while.

    2) Good question, let me ask the developer of that module. If there isn’t now, rest assured it will be comming soon 😉

    #220715

    support-jeff
    Member

    Michael –

    Support for m2m and o2m will be coming in a future release. Right now, only m2o are supported – they can be directly inferred from a FK in the database. Not sure of the timeline yet.

    #231774

    rmerc
    Member

    My question is along the same line. If I specify a foreign key constraint in the database (1:n relationship) and then generate hibernate mapping I do get <many-to-one > entry in the mapping file for the child table. The mapping file for the parent table, however, doesn’t get a corresponding <one-to-many> entry. I currently, add a <set> sepcification to the mapping file of the parent manually. However, it gets overwritten if I ever re-generate mappings. It’s not really a big deal but I am wondering if this is how others have been managing it or if there is a better way.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Many-to-many in the hibernate generation

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