摘要: 此处只讨论外键一对一双向映射有外键的一方: @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "device_id_") private DeviceInfo deviceInfo;另一边:@OneToOne(mappedBy = "deviceInfo")private SiteInfo siteInfo;即可! 阅读全文
posted @ 2014-03-22 13:33 尼玛范爷 阅读(5679) 评论(0) 推荐(0) 编辑