无意义-wd5
来源:互联网 发布:最好网络质量测试工具 编辑:程序博客网 时间:2024/05/16 12:42
Aear.java
package
import java.util.Date; import java.util.List; public Area { ; ; ; ; ; setSetupDate(Date setup){ =setup; } Date getSetupDate(){ ; } topicCount){ =topicCount; } getTopicCount(){ ; } setTopics(List<Topic> topics){ =topics; } List<Topic> getTopics(){ ; } setId(Long id){ =id; } Long getId(){ ; } setName(String name){ =name; } String getName(){ ;
}
Comment.java
package com.hzau.information.domain; import java.util.Date; public Comment { Long id; // private Long postId; Long userId; Date issueTime; String content; String getContent(){ .content; } setContent(String content){ .content=content; } setUserId(Long user){ .userId=user; } Long getUserId(){ .userId; } setIssueTime(Date date){ .issueTime=date; } Date getIssueTime(){ .issueTime; } setId(Long id){ .id=id; } Long getId(){ .id; } // public void setPostId(Long post){ // this.postId=post; // } // // public Long getPostId(){ // return this.postId; // } } PersonalProfile.java
package com.hzau.information.domain; import java.util.Date; import java.util.List; public PersonalProfile { ; ; ; //delete ; ; ; ; ; ; ; ; ; ; ; //delete ; setIconUrl(String url){ =url; } String getIconUrl(){ ; } setInterests(List<String> inte){ =inte; } List<String> getInterests(){ ; } String getMsn(){ ; } setMsn(String msn){ =msn; } String getQq(){ ; } setQq(String qq){ =qq; } Long getSalary(){ ; } setSalary(Long salary){ =salary; } setJob(String job){ =job; } String getJob(){ ; } setCollege(String college){ =college; } String getCollege(){ ; } setHomePhone(String homePhone){ =homePhone; } String getHomePhone(){ ; } String getAddress(){ ; } setAddress(String address){ =address; } setCellPhone(String cp){ =cp; } String getCellPhone(){ ; } setBirthday(Date bir){ =bir; } Date getBirthday(){ ; } setEmail(String em){ =em; } String getEmail(){ ; } String getGender(){ ; } setGender(String gender){ =gender; } setAge(String age){ =age; } String getAge(){ ; } String getNickName(){ ; } setNickName(String nn){ =nn; } setName(String name){ =name; } String getName(){ ; } Long getId(){ ; } setId(Long id){ =id;} } Post.java
package import import import public private Long id; private String title; private String content; private Long poster; private int readCount; private int commentCount; private Date postTime; private Set<Comment> comments=new HashSet<Comment>(); public void setComments(Set<Comment> comments){ this.comments=comments; } public Set<Comment> getComments(){ return this.comments; } public void setPostTime(Date postTime){ this.postTime=postTime; } public Date getPostTime(){ return this.postTime; } public void setCommentCount(int comm){ this.commentCount=comm; } public int getCommentCount(){ return this.commentCount; } public void setReadCount(int c){ this.readCount=c; } public int getReadCount(){ return this.readCount; } public void setPoster(Long posterId){ this.poster=posterId; } public Long getPoster(){ return this.poster; } public void setContent(String content){ this.content=content; } public String getContent(){ return this.content; } public void setTitle(String title){ this.title=title; } public String getTitle(){ return this.title; } public void setId(Long id){ this.id=id; } public Long getId(){ return this.id; } } SystemProfile.java package com.hzau.information.domain; import java.util.Date; public SystemProfile { ; ; ; ; ; con){ =con; } getContribute(){ ; } setOnLineTime(Long online){ =online; } Long getOnLineTime(){ ; } Date getRegisterDate(){ ; } setRegisterDate(Date regist){ =regist; } Long getId(){ ; } setId(Long id){ =id; } getLevel(){ ; } level){ =level; }} test.java package import import import import import import import public public static void main(String args[]){ SessionFactory sessionFactory=HibernateUtil.getSessionFactory(); Session session=sessionFactory.openSession(); Transaction transaction=session.beginTransaction(); Topic topic= new Topic(); topic.setIntro( "This is the first topic!"); topic.setSetupDate( new Date()); List<Post> posts= new ArrayList<Post>(); Post post= new Post(); post.setPostTime( new Date()); posts.add(post); session.save(post); topic.setPosts(posts); session.save(topic); transaction.commit(); session.close(); } } topic.java package com.hzau.information.domain; import java.util.Date; import java.util.List; public Topic { ; ; ; ; ; ; setIntro(String intro){ =intro; } String getIntro(){ ; } pc){ =pc; } getPostCount(){ ; } setModerator(User mod){ =mod; } User getModerator(){ ; } Date getSetupDate(){ ; } setSetupDate(Date set){ =set; } setPosts(List<Post> posts){ =posts; } List<Post> getPosts(){ ; } Long getId(){ ; } setId(Long id){ =id;}} User.java package import public private Long id; private String userName; private String password; private SystemProfile sysProfile; private PersonalProfile perProfile; private ArrayList<Post> posts; public User(){} public Long getId(){ return this.id; } public void setId(Long id){ this.id=id; } public String getUserName(){ return this.userName; } public void setuserName(String userName){ this.userName=userName; } public String getPassword(){ return this.password; } public void setPassword(String password){ this.password=password; } public void setSysProfile(SystemProfile sysProfile){ this.sysProfile=sysProfile; } public SystemProfile getSysProfile(){ return this.sysProfile; } public void setPerProfile(PersonalProfile perProfile){ this.perProfile=perProfile; } public PersonalProfile getPerProfile(){ return this.perProfile; } public ArrayList<Post> getPosts(){ return this.posts; } public void setPosts(ArrayList<Post> posts){ this.posts=posts; } }
- 无意义-wd5
- 无意义-wd2
- 无意义-wd3
- 无意义-wd7
- 无意义值
- -无意义-wD
- 无意义-wd4
- 无意义-wd6
- 无意义工作的烦恼
- 无意义的小东西
- 无意义的文章
- 关于无意义的主键
- 无意义的回帖(MFC)
- 3G在中国没有前景 争论无意义
- 降半旗,国葬 对钱老无意义.
- 无意义的事情做了太多
- 减压方法大全:放弃无意义的固执
- 要拒绝无意义的游戏行为
- 行的上下移动(包括物理移动和数据库的移动)
- Solution of ZOJ 2840 File Search
- freemark建立自定义标记宏 <@
- 解释PLMN,CELLID,LAC
- 微软面试题001-二叉树转化为链表
- 无意义-wd5
- 使用Time类遍历一学期的所有天
- 常用MFC和API函数
- 内网上线灰鸽子详细教程
- oracle 完全卸载
- Win7下 MyEclipse SVN 更改帐号(同样适用于Ankh SVN插件)
- 常用linux 数据类型的原型!!
- unexpected end of file found
- 小团队git组建