Re: [JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key)

2003-11-07 Thread Alexey Loubyansky
Unless it is many-to-many relationship you should use either @jboss.relation or @jboss.target-relation tags. Pedro Salazar wrote: Greetings, -I have 2 entities mapped from 2 database tables, ACCESS_PERMISSION and ACCESS_SCHEDULE. -the "relation" between them is, ACCESS_PERMISSION *has* several

Re: [JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key)

2003-11-06 Thread Pedro Salazar
On Thu, 2003-11-06 at 10:57, [EMAIL PROTECTED] wrote: > I will give you an example of an 1 - N relation using XDoclet tags. > Using this code you can easisly figure out what to put in your code: > > Advertisement --1N-- Correction > > AdvertisementBean.java: > /** >

Re: [JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key)

2003-11-06 Thread harm
jb.value-object tags. Regards, Harm de Laat Informatiefabriek The Netherlands Pedro Salazar <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/06/2003 11:08 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] relate 2 entities without a common key (WAS Re:

[JBoss-user] relate 2 entities without a common key (WAS Re: [JBoss-user] relationship 1-* with foreign key)

2003-11-06 Thread Pedro Salazar
Greetings, -I have 2 entities mapped from 2 database tables, ACCESS_PERMISSION and ACCESS_SCHEDULE. -the "relation" between them is, ACCESS_PERMISSION *has* several ACCESS_SCHEDULE, and a 1-N -*they don't share a common key* ACCESS_PERMISSION - SID_ID SERVICE_ID A1 A2 ... CONSTRA