Code Comments
Programming Forum and web based access to our favorite programming groups.Can anyone tell me what the xdoclet tags are for a unidirectional 1-1 relation between a Customer and an Address in JBoss? TIA Joost
Post Follow-up to this messageJoost Kraaijeveld wrote: > Can anyone tell me what the xdoclet tags are for a unidirectional 1-1 > relation between a Customer and an Address in JBoss? > Here it is (debit = customer and adres = address): /** * @ejb.interface-method * @ejb.relation * name="Debit-Adres" * role-name="1-debit-1-adres" * multiple="no" * target-multiple="no" * target-cascade-delete="no" * target-ejb="Adres" * target-role-name="1-adres-1-debit" * @jboss.relation * related-pk-field="adressNr" * fk-column="adress_nr" * @jboss.relation-read-ahead strategy="on-find" */ public abstract AdresLocal getAdres(); /** * @ejb.interface-method */ public abstract void setAdres( final AdresLocal adres ); Table debit has a field adress_nr as foreign key column. Adres_nr is the primary key column for table adres.
Post Follow-up to this messageHi Frank, Frank Langelage wrote: > Here it is (debit = customer and adres = address): > /** ... > Table debit has a field adress_nr as foreign key column. > Adres_nr is the primary key column for table adres. Thanks for the useful response. Joost
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.