JPA connection with H2 database

前端 未结 1 1915
刺人心
刺人心 2021-02-06 00:35

I am developing a hibernate with JPA project and trying to get the working persistence.xml by using H2(Embedded database).

Persistence.xml



        
1条回答
  •  名媛妹妹
    2021-02-06 01:22

    Are you using Spring? If so you could try this as long as the EntityManagerFactory is not provided by a container

    
        
        
            
                
                
            
        
        
    
    
    
        
    
    
    
        
        
        
        
    
    

    0 讨论(0)
提交回复
热议问题