现在的位置: 首页 > 综合 > 正文

hibernate 继承映射 joined-subclass

2013年10月11日 ⁄ 综合 ⁄ 共 2284字 ⁄ 字号 评论关闭

 

 

 

 

生成三张数据表

 

staff : id name

formal: formal_id staffId

temp: temp_id   hours

 

 

 

 

插入完成后, 

 

staff 中的 记录为

1   tao

2   null

3  null

 

formal 中的记录为

 

2  idxxxxx

 

temp 中的记录为

3  20

抱歉!评论已关闭.