hi all . I have not understand the difference from the use relationship @OneToMany standalone or @OneToMany with @ManyToOne.
A example: i have 2 entity: Customer Order ! Customer can have many order . So into the entity Customer i have : @Entyty Customer @Id Integer id; String nameCustomer; @OneTOMany Set ordersCustomer ; // other think ............................................................. @Entity Order @Id Integer id; String description_product: Double amount-order; ................................................. it is not sufficient for use it???? what it is the difference to use also : ------------------------------------------------------- @Entyty Customer @Id Integer id; String nameclient; @OneTOMany (mappedby=customer) Set ordersCustomert ; // other think ------------------------- @Entity Order @Id Integer id; String descriptionofproduct: Double amount-order; Customer customer; ------------------------------------- Please i ask difference conceptual s and difference int othe geneeration tables into DB . Takl you for your attention . Mauro -- View this message in context: http://openejb.979440.n4.nabble.com/JPA-OneTOMany-VS-OneTOMany-with-ManyToOne-tp4667161.html Sent from the OpenEJB User mailing list archive at Nabble.com.
