hibernate 视图映射

1.找到指定视图 右键映射

Myeclipse2015 ssh框架 hibernate 视图映射

2. 指定实体类存放包名!

Myeclipse2015 ssh框架 hibernate 视图映射

3. 完成后如下图所示

Myeclipse2015 ssh框架 hibernate 视图映射

4. 复制VUserid 的所有内容 放到VUser里然后删除VUserid,然后对内容进行适当修改

5. xml 文件修改 删除图中圈里的内容

Myeclipse2015 ssh框架 hibernate 视图映射

6. 指定视图id(不采取会重复的字段所以我用的是实体的id)

修改前

Myeclipse2015 ssh框架 hibernate 视图映射

修改后

Myeclipse2015 ssh框架 hibernate 视图映射

7. 将所有的 key-property 改为 key-property

修改前

Myeclipse2015 ssh框架 hibernate 视图映射

修改后

Myeclipse2015 ssh框架 hibernate 视图映射

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-07-17
  • 2021-05-30
  • 2022-01-07
猜你喜欢
  • 2021-12-20
  • 2021-10-01
  • 2021-10-20
  • 2021-12-03
  • 2022-02-18
  • 2022-12-23
  • 2022-01-31
相关资源
相似解决方案