我想從我在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