Does Hibernate support one-to-one associations as pkeys?
- by Andrzej Doyle
Hi all,
Can anyone tell me whether Hibernate supports associations as the pkey of an entity? I thought that this would be supported but I am having a lot of trouble getting any kind of mapping that represents this to work. In particular, with the straight mapping below:
@Entity
public class EntityBar
{
@Id
@OneToOne(optional = false,…