support for postgresql (#37)

This commit is contained in:
Athou
2013-05-08 09:28:18 +02:00
parent eaef35e990
commit ae7d0c4ab7
3 changed files with 27 additions and 2 deletions

View File

@@ -104,6 +104,7 @@
<lib>remove:hsqldb</lib>
<lib>org.hsqldb:hsqldb:SNAPSHOT</lib>
<lib>mysql:mysql-connector-java:5.1.24</lib>
<lib>postgresql:postgresql:9.1-901.jdbc4</lib>
</libs>
</configuration>
</plugin>
@@ -428,6 +429,13 @@
<jpa.dialect>com.commafeed.backend.MySQL5Dialect</jpa.dialect>
</properties>
</profile>
<profile>
<id>pgsql</id>
<properties>
<jpa.datasource.name>java:openejb/Resource/PostgreSQL</jpa.datasource.name>
<jpa.dialect>org.hibernate.dialect.PostgreSQLDialect</jpa.dialect>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>