Hibernate 3.2RC1.
I need to use my own class for primary keys. Usually they contain int (in this case it's id).
Code:
@Id
@AttributeOverrides({
@AttributeOverride(name = "id", column = @Column(name="SYSTEMUSERKEY"))
})
private SystemUserPK primaryKey;
Code:
@Embeddable
@AccessType("field")
public class SystemUserPK implements IPrimaryKey, Cloneable {
...
private int id;
}
Problem here is that I don't know how to enable auto id generation for these keys. Can anyone help me with this (directions where to look)?