What's the rational for supporting the following?

@Entity
class Product {
    ...
}

@Entity
class Order {
    ...
}

@Entity
@IdClass(...)
class OrderLine {
    @Id
    private Order order;

    @Id
    private Product product;
}

Specifically, the declaration of the OrderLine primary key.  Why would
these not have to be `@Id @ManyToOne`?
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to