But if into entiry Order i not put the field Customer customerId ? 

Or if into entity Customet i not put the field Collection<Order> and  just
into tge Entity Order i pyt a field Customet 
Custoner? 
Into tgw entytt Custimer not reference at entyty Order .

I can get the ordervwith a select qyery s

Finallt tge sak it is: 

When i use @OneToMany or @ManyToOne i have to use both or it is possible use
only one of 2 annotation? 
Mauro




--
View this message in context: 
http://openejb.979440.n4.nabble.com/JPA-OneTOMany-VS-OneTOMany-with-ManyToOne-tp4667161p4667165.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to