我想从我在Postgres中创建的数据库中反向工程师pojos(在eclipse 3.4.2中使用hibernate工具插件v3.2.4x),但我的表被忽略。如果我在hibernate.cfg.xml文件中将'public'指定为'hibernate.default_schema'属性的值,但是如果我尝试指定不同的模式,则不会生成任何内容。使用休眠工具从Postgres反向工程师pojos
我试过修改的情况下(即低,上,骆驼),但我仍然得到相同的结果。这里是我的hibernate.cfg.xml文件:
<?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 name="MyFactory">
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.password">[mypassword]</property>
<property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/testgis</property>
<property name="hibernate.connection.username">postgres</property>
<property name="hibernate.default_schema">locatimus</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
</session-factory>
</hibernate-configuration>
这是我在的pgAdmin III安装的照片 - http://twitpic.com/snj8i
我敢肯定,我做(或失踪)的东西容易。正如我所说,如果我将模式更改为public,那么会生成该模式中所有表的pojos!
任何人都可以帮忙吗?
非常感谢, 达米安
是的,postgres用户在两个模式上具有完全相同的权限(用法,创建) – Damian