mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1457 - Issue with @ManyToOne with @EmbeddedId where only some columns are insertable or updatable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user