Title: Message
AFAIK, no. In order to access those attributes, you'll need to map a new entity bean to the relation table and model the M:N as a combined 1:N and N:1.

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stéphane BOCQUET
Sent: Thursday, May 27, 2004 4:25 AM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Many to many relationship with extra fields

Hi,
Is it possible to create a many to many relationship between 2 EJBs, with a relation table that has more fields than the 2 PK ?

eg :
USERS / MATCHES
Users can bet on matches, and matches can have several users. I'd like to add several fields in the relation table between Users and Matches (Bets), likes points, score, etc ...

Is it possible to do this automatically or not with XDoclet ?
Or must I have two 1-n relationship with my own created Bets EJB ?

I work with JBoss 3.2.3 & JBoss-IDE (XDoclet core 1.2.3)
Thanks for any answers
 
Stéphane

Reply via email to