bigshuai 发表于 2013-10-15 10:41:57

主键策略在哪设置

看到模板里有
<#if jeecg_primary_key_policy == 'uuid'>
        @Id
        @GeneratedValue(generator = "paymentableGenerator")
        @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
        </#if>
        <#if jeecg_primary_key_policy == 'identity'>
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        </#if>
        <#if jeecg_primary_key_policy == 'sequence'>
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="sequence")
        @SequenceGenerator(name="sequence",sequenceName="${jeecg_sequence_code}",allocationSize=1)
        </#if>

jeecg_primary_key_policy 这是在哪设置的呢       

页: [1]
查看完整版本: 主键策略在哪设置