我是这么做的
@Column
@Prev(els=@EL("$me.getBabyId()"))
private int babyId;
@Column
@Prev(els=@EL("$me.getUserId()"))
private int userId;
private Baby baby;
private User user;
public int getBabyId() {
return this.getBaby().getId();
}
public int getUserId() {
return this.getUser().getId();
}