appfuse xdoclet 生成hbm.xml中的序列号

    
    /**
     * @hibernate.id column="id" generator-class="sequence" type="long" unsaved-value="null"
     * @hibernate.generator-param name="sequence" value="s_role"
     */
    public Long getId() {
        return id;
    }
结果

   <!-- The generator-class attribute of @hibernate.id is deprecated, use the @hibernate.generator tag instead -->
    <generator class="sequence">

        <!-- The generator-param tag is deprecated, use the @hibernate.generator and @hibernate.param tags instead -->
        <param name="sequence" >
            s_role
        </param>

    </generator>

你可能感兴趣的:(xml,Hibernate,Appfuse)