Missing sequence or table: hibernate_sequence

后端 未结 8 2271
礼貌的吻别
礼貌的吻别 2020-12-14 15:49

I am new to hibernate and postgres. Actually I am trying to map potgres database using Hibernate. This is my table stucture in postgresql

CREATE TABLE employ         


        
8条回答
  •  無奈伤痛
    2020-12-14 16:32

    If you don't use annotation you should change YourClass.hbm.xml file.

    Your ID section should be:

    
         
             employee_id_seq
         
    
    

    File sample:

    
     
    
    
       
          
             This class contains the employee detail. 
          
          
             
                 employee_id_seq
             
          
          
          
          
       
    
    

提交回复
热议问题