摘要: 1.时间戳 有好多种类型 TIMESTAMP代表 年月日 时分秒 1 @Temporal(TemporalType.TIMESTAMP)2 @Column(name = "APPRTIME")3 private Date apprtime; //审批时间2.给持久化类的字段添加一个普通字段 跟数据库没关系的字段1 @Transient2 private Set<Accirespdepref> accirespdeprefs; //责任部门关系3.级联一对多1 @OneToMany(fetch = FetchType.LAZY) //懒加载 2 @Cascade( 阅读全文
posted @ 2013-06-17 17:14 CodingFarmer 阅读(173) 评论(0) 推荐(0) 编辑