读书人

容易OA项目笔记(6):Ant+XDoclet

发布时间: 2012-11-23 00:03:43 作者: rapoo

简单OA项目笔记(6):Ant+XDoclet


ant类似makefile
XDoclet是根据注释生成struts的struts-config.xml配置文件、javascript校验等。


初步感觉这两个结合只要是为了自动生成hibernate.cfg.xml,现在我爱用Annotation,这个用处不大。仅记录一下 以后好查找


build.xml

/** *  * @author zudajun225 * @hibernate.class table="t_user" */public class User {/** * @hibernate.id * generator-class="native" */private int id;/** * 登陆账号 * @hibernate.property * not-null="true" * unique="true" */private String username;/** * 登陆密码 * @hibernate.property * not-null="true" */private String  password;/** * 创建时间 * @hibernate.property update="false" */private Date createTime;/** * 失效时间 * @hibernate.property */private Date expireTime;/** * 人员信息 * @hibernate.many-to-one * unique="true" */private Person person;









读书人网 >Web前端

热点推荐