tags:

views:

15

answers:

1

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
No, the question is about basic types (String, etc), not entities.
Pascal Thivent