Hi,
I'd like to know, if Hibernate can manage with a composite.id element that has an auto-increment key property?
I show a class which I'd like to work with:
Code:
public class LineItem {
public static class Id extends BaseObject {
private Order order;
private Long index;
}
private Id key;
}
So, e.g. I have an Order, which contains LineItems, each of which has an "index", that should be an auto-increment property with Hibernate generator
identity.
Can anyone show me hbm.xml representation?
Thanks.
Regards,
Thomas