1

I'm using netbeans "Entity classes from database" function to generate my entity classes. Sadly, netbeans chooses the wrong manytomany relationship owner. I have for example a user and group table which are related via many to many. In my case the group entity is the owner with @JoinTable and User has the "MappedBy" annotation. How can I make User to the owning entity. I could change it manually but after generating it again from database, it will be overwritten. This is really annoying. Any ideas?

Regards, Manu

ManuPanu
  • 217
  • 1
  • 3
  • 12
  • Which version are you using? Have you already checked the bug tracker of Netbeans? Had some problems in the past with manytomany – swinkler Jul 12 '15 at 20:22
  • I'm already on the latest version 8.0.2. I created a bug -> https://netbeans.org/bugzilla/show_bug.cgi?id=253443 – ManuPanu Jul 13 '15 at 16:07

0 Answers0