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
Try this
| @Entity
| public class Flights_Customers{
| @ManyToOne
| private Flight flight;
|
| @ManyToOne
| private Customer customer;
| ...
| }
|
| @Entity
| public class Customer{
| @OneToMany(mappedBy="customer")
| private Collecti