Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
winduprule-386 hibernate default props (#358)
* winduprule-386 check hibernate.default_schema and hibernate.default_catalog * winduprule-386 fixed the namespace used in the file * winduprule-386 simplified the rule using params * winduprule-386 redefined rule and added test files * winduprule-386 add 2 spaces, again * winduprule-386 add trailing spaces * Update rules-reviewed/eap7/eap71/hibernate51-53.windup.xml Co-Authored-By: jonathanvila <jonathan.vila@gmail.com> * Update rules-reviewed/eap7/eap71/tests/hibernate51-53.windup.test.xml Co-Authored-By: jonathanvila <jonathan.vila@gmail.com> * Update rules-reviewed/eap7/eap71/hibernate51-53.windup.xml Co-Authored-By: jonathanvila <jonathan.vila@gmail.com> * winduprule-386 fixed comment * Update rules-reviewed/eap7/eap71/hibernate51-53.windup.xml Co-Authored-By: jonathanvila <jonathan.vila@gmail.com>
- Loading branch information
1 parent
9d1826c
commit 4bd7b9f
Showing
5 changed files
with
64 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../eap71/tests/data/data-hibernate51-53/Hibernate5153-01000-persistence-default-catalog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> | ||
<persistence-unit name="testPU" transaction-type="JTA"> | ||
<provider>org.hibernate.ejb.HibernatePersistence</provider> | ||
<jta-data-source>jdbc/testdb</jta-data-source> | ||
<properties> | ||
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | ||
<property name="hibernate.show_sql" value="true"/> | ||
<property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/> | ||
<property name="hibernate.hbm2ddl.auto" value="update"/> | ||
<property name="hibernate.connection.autocommit" value="true"/> | ||
<property name="hibernate.default_catalog" value="mycatalog"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> |
15 changes: 15 additions & 0 deletions
15
...7/eap71/tests/data/data-hibernate51-53/Hibernate5153-01000-persistence-default-schema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> | ||
<persistence-unit name="testPU" transaction-type="JTA"> | ||
<provider>org.hibernate.ejb.HibernatePersistence</provider> | ||
<jta-data-source>jdbc/testdb</jta-data-source> | ||
<properties> | ||
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | ||
<property name="hibernate.show_sql" value="true"/> | ||
<property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/> | ||
<property name="hibernate.hbm2ddl.auto" value="update"/> | ||
<property name="hibernate.connection.autocommit" value="true"/> | ||
<property name="hibernate.default_schema" value="myschema"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> |
14 changes: 14 additions & 0 deletions
14
...iewed/eap7/eap71/tests/data/data-hibernate51-53/Hibernate5153-01000-persistence-empty.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"> | ||
<persistence-unit name="testPU" transaction-type="JTA"> | ||
<provider>org.hibernate.ejb.HibernatePersistence</provider> | ||
<jta-data-source>jdbc/testdb</jta-data-source> | ||
<properties> | ||
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | ||
<property name="hibernate.show_sql" value="true"/> | ||
<property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/> | ||
<property name="hibernate.hbm2ddl.auto" value="update"/> | ||
<property name="hibernate.connection.autocommit" value="true"/> | ||
</properties> | ||
</persistence-unit> | ||
</persistence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters