Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding system property for databases as part of #36
- Loading branch information
1 parent
3fc8501
commit 350dda3
Showing
5 changed files
with
53 additions
and
12 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
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
File renamed without changes.
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,25 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<!DOCTYPE hibernate-configuration PUBLIC | ||
"-//Hibernate/Hibernate Configuration DTD//EN" | ||
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | ||
<hibernate-configuration> | ||
<session-factory> | ||
<property name="connection.url">jdbc:h2:./target/db/repository</property> | ||
<property name="connection.driver_class">org.h2.Driver</property> | ||
<property name="dialect">org.hibernate.dialect.H2Dialect</property> | ||
<property name="connection.username">root</property> | ||
<property name="connection.password"></property> | ||
<property name="show_sql">false</property> | ||
<property name="format_sql">false</property> | ||
<property name="hibernate.hbm2ddl.auto">create-drop</property> | ||
<property name="hibernate.hbm2ddl.import_files">import_test.sql</property> | ||
|
||
|
||
<property name="hibernate.cache.use_query_cache">false</property> | ||
<property name="hibernate.cache.use_second_level_cache">false</property> | ||
|
||
<!-- Nao adicione as classes aqui! Elas ficariam replicadas em 3 xmls! | ||
Deixe somente no SessionFactoryCreator! --> | ||
|
||
</session-factory> | ||
</hibernate-configuration> |
File renamed without changes.