HIbernate 5: generator class=“sequence” not working

前端 未结 3 609
遥遥无期
遥遥无期 2021-02-09 04:22

I have following mapping:

    
        
            

        
3条回答
  •  轮回少年
    2021-02-09 04:52

    You have two options:

    1. You set the hibernate.id.new_generator_mappings configuration property to false and switch back to the old identifier generators
    2. You change the mapping as follows, from this:

      
          MY_SEQUENCE
      
      

      to:

      
          none
          1
          MY_SEQUENCE
      
      

提交回复
热议问题