public class User { ... @oneToOne (mappedBy="user") private UserPicture userPicture; ...}public class UserPicture { ... @oneToOne @JoinColumn (name="user") private User user; ...}
欢迎分享,转载请注明来源:内存溢出
public class User { ... @oneToOne (mappedBy="user") private UserPicture userPicture; ...}public class UserPicture { ... @oneToOne @JoinColumn (name="user") private User user; ...}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)