Please show me how to map collection of basic type using annotation for one-to-many?
A:
@OneToMany
@JoinColumn(name="order_id")
// @Cascade add any cascade options you want
public Set<LineItem> getLineItems() {
return lineItems;
}
BrennaSoft
2010-07-16 13:47:26
No, the question is about basic types (String, etc), not entities.
Pascal Thivent
2010-07-17 15:46:44