NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Generated entities from database

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Xavier Callejas
Posted via mailing list.





PostPosted: Sat Oct 04, 2008 9:26 pm    Post subject: Generated entities from database Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo