How do I configure hibernate ORM on heroku?

后端 未结 3 2054
醉梦人生
醉梦人生 2021-01-05 16:35

Here is what I have in hibernate.cfg.xml


    
                 


        
3条回答
  •  猫巷女王i
    2021-01-05 16:49

    You can use this Hibernate+JPA persistence.xml configuration as a base for your hibernate configuration.

    The property names between the hibernate.cfg.xml and the persistence.xml are the same, only hibernate uses opening and closing elements whereas JPA uses attributes.

    
                
                
                
                
                
                
                
                
    
                
                
                
                
                
                
                
                
    
            
    

    Maven dependancies:

     
                org.hibernate
                hibernate-core
                4.2.1.Final
                   
    
            
                org.hibernate
                hibernate-c3p0
                4.2.1.Final
            
    
            
                org.hibernate
                hibernate-entitymanager
                4.2.1.Final
            
    

提交回复
热议问题