我是hibernate和heroku的新手。我在heroku上创建了一个数据库,并尝试使用我的eclipse插件访问数据库 - 使用hibernate生成POJO类。我收到错误 - “读取模式错误:获取数据库元数据”。我查了用户名,密码,数据库名..一切似乎都是正确的,我无法连接PGAdmin工具(访问Postgres数据库)。使用休眠eclipse插件访问heroku数据库
你能帮助我连接heroku数据库和eclipse hibernate插件吗?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.password">xxxxxx</property>
<property name="hibernate.connection.url">jdbc:postgresql://xxxxx:5432/xxxxx</property>
<property name="hibernate.connection.username">xxxxxxx</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.default_schema">xxxxxx</property>
</session-factory>
任何帮助表示赞赏!
需要大约3分钟的时间才能建立连接,对此有何解决方案? –