Hi!
I have an entity bean with composite primary key, something like:
@Entity class EntityBean { @Embeddable static class PK { String id1; String id2; } @EmebeddedId PK pk; @Column(nullable = false) int value; }
@Entity class EntityBean { @Embeddable static class PK { String id1; @ManyToOne OtherEntity oe; } @EmebeddedId PK pk; @Column(nullable = false) int value; } @Entity class OtherEntity { @Id String id; }
this is not supported yet in hibernate, and not part of the EJB3 spec