Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added DDL generated by Hibernate and latest jdbc driver for postgres along with a sample configuration of the datasource.
In order to work with the sequences I found that the IDENTITY strategy had to be used.
To make the configuration work I had to add the module and the jdbc-driver to wildfly. This can be done either manually or through the jboss-cli. In my case I preferred the last option. Here follows the commands used:
module add --name=org.postgresql --resources=/tmp/postgresql-9.3-1102.jdbc41.jar --dependencies=javax.api,javax.transaction.api
/subsystem=datasources/jdbc-driver=postgresql-9.3-1102.jdbc41.jar_org.postgresql.Driver_9_3:add(driver-name="postgresql-9.3-1102.jdbc41.jar_org.postgresql.Driver_9_3",driver-module-name="org.postgresql",driver-class-name=org.postgresql.Driver