java_SSH整合1
发布日期:2021-08-22 08:05:43 浏览次数:1 分类:技术文章

本文共 3384 字,大约阅读时间需要 11 分钟。

Domain:

public class Department {    private Long id;    private Set
users = new HashSet
(); private Department parent; private Set
children = new HashSet
(); private String name; private String description;}
View Code

 

public class Role {    private Long id;    private String name;    private String description;    private Set
users = new HashSet
();}
View Code
public class User {    private Long id;    private Department department;    private Set
roles = new HashSet
(); private String loginName; // 登录名 private String password; // 密码 private String name; // 真实姓名 private String gender; // 性别 private String phoneNumber; // 电话号码 private String email; // 电子邮件 private String description; // 说明}
View Code

 对应xml

Department.hbm.xml

View Code

Role.hbm.xml

View Code

User.hbm.xml

View Code

 applicationContext.xml

View Code

hibernate.cfg.xml

org.hibernate.dialect.MySQL5Dialect
true
update
View Code

structs.xml

/test.jsp
/WEB-INF/jsp/roleAction/list.jsp
/WEB-INF/jsp/roleAction/addUI.jsp
/WEB-INF/jsp/roleAction/editUI.jsp
roleAction_list
View Code

 

转载于:https://www.cnblogs.com/MarchThree/p/3973931.html

转载地址:https://blog.csdn.net/weixin_33738982/article/details/93319634 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Hign-Speed Tracking with Kernelzied Correlation Filters
下一篇:Python处理JSON

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年04月16日 23时26分23秒