NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Xavier Callejas Posted via mailing list.
|
Posted: Sat Oct 04, 2008 9:26 pm Post subject: Generated entities from database |
|
|
Hi,
I have in my database a many-to-many table that also has columns for storing
data (not just the primary keys of their parent tables).
When the entity class of this many-to-many table is generated by this
wizard, it creates one more table for the composite PK witch is used as
instance in its entity class.
So, the parents primary keys are stored in this 'many2manyPK' class.
But, there are also created setters and getters methods for these primary
keys fields, why???
What I should use to store the parents primary keys:
1. The 'many2manyPK' generated class??
2. Or the setters/getters generated methods from the entity class??
Thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|