摘要: 如实体PdOrg对象中有users对象,数据库user表有字段DEL_FLAG(0:删除;1:未删除):private List users= new ArrayList();生成get、set方法:@OneToMany(fetch=FetchType.LAZY, mappedBy="user")@BatchSize(size=10)@Where(clause="DEL_FLAG=1")@OrderBy(clause="CREATED_DATE asc")public List getUsers() { return this.use 阅读全文
posted @ 2013-08-30 14:02 jerome.rong 阅读(15733) 评论(1) 推荐(0) 编辑