Skip to content

Commit

Permalink
refactor: #35 keeping codes clean.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroxpepe committed Feb 4, 2023
1 parent f16e4c7 commit 9cc6110
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion webapp/src/main/resources/META-INF/dozer/dozer-mapping.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd">

<!-- add code to set. -->

</mappings>
10 changes: 5 additions & 5 deletions webapp/src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
version="2.0">
<persistence-unit name="expt-pu" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source/>
<non-jta-data-source />
<class>org.expt.blog.entity.Category</class>
<class>org.expt.blog.entity.Entry</class>
<class>org.expt.blog.entity.Tag</class>
<class>org.expt.blog.entity.EntryTag</class>
<class>org.expt.blog.entity.User</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.connection.pool_size" value="0"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider" />
<property name="hibernate.connection.pool_size" value="0" />
<property name="hibernate.max_fetch_depth" value="3" />
<!--<property name="hibernate.hbm2ddl.auto" value="update"/>-->
<property name="hibernate.hbm2ddl.auto" value="create" />
</properties>
Expand Down
11 changes: 6 additions & 5 deletions webapp/src/main/resources/log4j.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

Expand All @@ -18,12 +18,13 @@
<param name="MaxFileSize" value="1MB" />
<param name="MaxBackupIndex" value="10" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5p] %C{10}#%M() - %m%n" />
<param name="ConversionPattern"
value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5p] %C{10}#%M() - %m%n" />
</layout>
</appender>

<category name="org.apache,org.springframework,org.dozer,org.hibernate" >
<priority value="error"/>
<category name="org.apache,org.springframework,org.dozer,org.hibernate">
<priority value="error" />
</category>

<root>
Expand All @@ -32,4 +33,4 @@
<appender-ref ref="file" />
</root>

</log4j:configuration>
</log4j:configuration>

0 comments on commit 9cc6110

Please sign in to comment.