[JBoss-user] [EJB 3.0] - Re: Many to many plus additional value

2006-02-07 Thread chrismalan
Thanks Alximik, I suppose one will then get all the customers for a flight (or vice versa) straight from the relationship table. I am quite sure this may actually work. Thanks again. Chris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922090#3922090 Repl

[JBoss-user] [EJB 3.0] - Re: Many to many plus additional value

2006-02-07 Thread alximik
Try this | @Entity | public class Flights_Customers{ | @ManyToOne | private Flight flight; | | @ManyToOne | private Customer customer; | ... | } | | @Entity | public class Customer{ | @OneToMany(mappedBy="customer") | private Collecti