#1457 - Issue with @ManyToOne with @EmbeddedId where only some columns are insertable or updatable

This commit is contained in:
rob bygrave
2018-07-18 21:29:08 +12:00
parent 2d44d06f36
commit 01541bb208
14 changed files with 318 additions and 22 deletions
@@ -0,0 +1,29 @@
package org.tests.model.composite;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
@Entity
public class CkeUser {
@EmbeddedId
private CkeUserKey userPK;
private String name;
public CkeUserKey getUserPK() {
return userPK;
}
public void setUserPK(CkeUserKey userPK) {
this.userPK = userPK;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}