-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Working with composite-id
PostPosted: Tue Dec 28, 2004 12:53 pm 
Newbie

Joined: Wed Jul 28, 2004 8:03 am
Posts: 8
Location: Porto Alegre - Brazil
Hi friends!
Well, I'm be using middlegen for generate my hbm and my .java classes.
My question:
I have the follow diagram:

Table: Programmer
Fields: id_programmer, name_programmer

Table: Language
Fields: id_language, name_language

Table: Programmer_Language
Fields: id_programmer, id_language

Yes, I konw that this is a composite-id, but middlegen generate 4 classes for me:

Programmer, Language, Programmer_Language and Programmer_LanguagePK (association, correct?)

How I can working with this 4types of classes? How find records in these classes, update, delete, insert, etc...? Anywhere know if exists some documentation about this?

Thanks for any help ;)

_________________
Dalton Camargo
JEE Software Architect
JavaFree.org Founder
JavaBB.org Owner
Technical Revisor of Spring in Action the Book to Portuguese


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


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

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.