- 3
- 0
- 约3.11千字
- 约 5页
- 2015-09-27 发布于重庆
- 举报
Hibernate表的对应关系
Hibernate表的对应关系
重点:多对多关系
难点:多对多关系
课程类型:理论
教学内容:
一、一对一的关系
?假设有2个表:person 和idcard
? 在person和idcard表的pojo 类里面分别设置另一个表的属性:private Person person;(Idcard类里面声明person类) private Idcard idcard (Person类里面声明)
?在配置文件中为如下表示:主表person:? one-to-one name=idcard class=com.guoc.vo.Idcard cascade=all???????/one-to-one
?副表idcard:副表的id根据外键即主表的idgenerator class=foreign???????? param name=propertyperson/param??????????? /generator
one-to-one name=person class=com.guoc.vo.Person??????? ?constrained=true
??????? /one-to-one
在操作的时候:Person person = new Person();??person.setPid(idcardForm.getString(pid));
ic.setPerso
您可能关注的文档
- Dynamics of FD networks the role of bound states.pdf
- Dynamics Of Hadronization From Nuclear Semi Inclusive Deep Inelastic Scattering.pdf
- Dynamics of interacting neural networks.pdf
- Dynamics of LongLiving Excitons in Tunable Potential Landscapes.pdf
- Dynamics of Nucleation in the Ising Model.pdf
- Dynamics of onedimensional Bose liquids Andreevlike reflection at Yjunctions and absence.pdf
- Dynamics of Open Bosonic Quantum Systems in Coherent State Representation.pdf
- Dynamics of strangeness production in the near threshold nucleonnucleon collisions.pdf
- Dynamics of the BornInfeld dyons.pdf
- Dynamics of TwoLevel System Interacting with Random Classical Field.pdf
- 中国国家标准 GB/T 4937.41-2026半导体器件 机械和气候试验方法 第41部分:非易失性存储器可靠性试验方法.pdf
- 《GB/T 4937.41-2026半导体器件 机械和气候试验方法 第41部分:非易失性存储器可靠性试验方法》.pdf
- GB/T 17737.110-2026同轴通信电缆 第1-110部分:电气试验方法 连续性试验.pdf
- 中国国家标准 GB/T 17737.110-2026同轴通信电缆 第1-110部分:电气试验方法 连续性试验.pdf
- 《GB/T 17737.110-2026同轴通信电缆 第1-110部分:电气试验方法 连续性试验》.pdf
- GB/T 17737.126-2026同轴通信电缆 第1-126部分:电气试验方法 灭晕电压.pdf
- 中国国家标准 GB/T 17737.126-2026同轴通信电缆 第1-126部分:电气试验方法 灭晕电压.pdf
- 《GB/T 17737.126-2026同轴通信电缆 第1-126部分:电气试验方法 灭晕电压》.pdf
- 生产辅助工岗位标准化操作标准考试试卷.doc
- 工程检查标准考试.doc
最近下载
- 患者身份识别与沟通课件.pptx VIP
- 急诊医学教学课件:休克 (shock).ppt VIP
- 2025-2026学年上海市控江、复兴、市西、松二、奉贤、金山中学六校高三上学期期中联考政治试卷含详解.docx VIP
- 江苏专转本土木建筑类基础理论及答案.docx VIP
- 【中考真题】2025年贵州省中考数学真题(含解析).pdf VIP
- 《黄河流域的治理》课件.ppt VIP
- 2024中国高尿酸血症和痛风诊治指南更新版解读PPT课件.pptx VIP
- 江苏专转本土木建筑类基础理论+答案(一).docx VIP
- QJ600-12B 12D(钱江闪600)维修手册24.4.10.pdf VIP
- 黄河流域农业课件PPT.pptx VIP
原创力文档

文档评论(0)