I\'ve got a problem with @MapsId
annotation and @EmbeddedId
. When running a code in Hibernate I get:
Caused by: org.hibernate.Pr
its an old but might be useful for some one
try to
@Entity
public class Employee implements Serializable {
@EmbeddedId
private EmployeeId id;
private String firstName;
@ManyToOne
@MapsId("id")
@JoinColumn(name ="serverId")
private Server server;
@OneToOne
@MapsId("id")
@JoinColumn(name= "websiteId")
private Website website;