How do I configure hibernate ORM on heroku?

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

Here is what I have in hibernate.cfg.xml


    
                 


        
3条回答
  •  庸人自扰
    2021-01-05 16:45

    The URL format that comes from Heroku Postgres is not the JDBC format. It is a polyglot format so that all platforms can use it. So you need to transform the URL to the JDBC format. There is a good example of how to do that on the Heroku Dev Center:
    https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java#using-the-in-plain-jdbc

提交回复
热议问题