Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
morphilog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peukert, Dr. Hagen
morphilog
Commits
d954f907
Commit
d954f907
authored
Feb 5, 2018
by
Peukert, Dr. Hagen
Browse files
Options
Downloads
Patches
Plain Diff
database parameter
parent
d9094e43
Branches
beatae-nulla-eum-aliquid-ut-nesciunt-commodi
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
resources/META-INF/mycore-jpa-defaults.xml
+14
-0
14 additions, 0 deletions
resources/META-INF/mycore-jpa-defaults.xml
resources/META-INF/persistence.xml
+64
-0
64 additions, 0 deletions
resources/META-INF/persistence.xml
resources/log4j2.xml
+14
-0
14 additions, 0 deletions
resources/log4j2.xml
with
92 additions
and
0 deletions
resources/META-INF/mycore-jpa-defaults.xml
0 → 100644
+
14
−
0
View file @
d954f907
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings
xmlns=
"http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
version=
"2.0"
>
<!-- change any settings -->
<!--
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>myschema</schema>
<catalog>mycatalg</catalog>
</persistence-unit-defaults>
</persistence-unit-metadata>
-->
</entity-mappings>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/META-INF/persistence.xml
0 → 100644
+
64
−
0
View file @
d954f907
<?xml version="1.0" encoding="UTF-8" ?>
<persistence
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version=
"2.0"
xmlns=
"http://java.sun.com/xml/ns/persistence"
>
<persistence-unit
name=
"MyCoRe"
transaction-type=
"RESOURCE_LOCAL"
>
<!-- http://stackoverflow.com/questions/3211138/jpa-eclipselink-how-to-change-default-schema -->
<!--
<mapping-file>META-INF/mycore-jpa-defaults.xml</mapping-file>
-->
<!-- http://stackoverflow.com/questions/15026302/multiple-jars-single-persistence-unit-solution -->
<mapping-file>
META-INF/mycore-base-mappings.xml
</mapping-file>
<mapping-file>
META-INF/mycore-ifs-mappings.xml
</mapping-file>
<mapping-file>
META-INF/mycore-iview2-mappings.xml
</mapping-file>
<mapping-file>
META-INF/mycore-pi-mappings.xml
</mapping-file>
<mapping-file>
META-INF/mycore-urn-mappings.xml
</mapping-file>
<mapping-file>
META-INF/mycore-user2-mappings.xml
</mapping-file>
<properties>
<!--
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:h2:file:/path/to/.mycore/myapp/data/h2/mycore;AUTO_SERVER=TRUE" />
-->
<!-- PostgreSQL -->
<!--
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://127.0.0.1/mycore" />
-->
<!-- MySQL -->
<property
name=
"javax.persistence.jdbc.driver"
value=
"com.mysql.jdbc.Driver"
/>
<property
name=
"javax.persistence.jdbc.url"
value=
"jdbc:mysql://127.0.0.1/morphilo?characterEncoding=UTF-8&useUnicode=true"
/>
<!-- DB2 -->
<!--
<property name="javax.persistence.jdbc.driver" value="com.ibm.db2.jcc.DB2Driver" />
<property name="javax.persistence.jdbc.url" value="jdbc:db2://localhost:50000/mycore" />
-->
<property
name=
"javax.persistence.jdbc.user"
value=
"root"
/>
<property
name=
"javax.persistence.jdbc.password"
value=
""
/>
<!-- any jpa provider properties (still require hibernate) -->
<property
name=
"hibernate.cache.use_second_level_cache"
value=
"false"
/>
<property
name=
"hibernate.hbm2ddl.auto"
value=
"update"
/>
<!-- Set batch_size to "0" in case of SQL batch Errors -->
<property
name=
"hibernate.jdbc.batch_size"
value=
"2000"
/>
<property
name=
"hibernate.default_batch_fetch_size"
value=
"100"
/>
<!-- Echo all executed SQL to stdout -->
<property
name=
"hibernate.show_sql"
value=
"false"
/>
<!-- second-level cache -->
<!-- disabled -->
<property
name=
"hibernate.cache.region.factory_class"
value=
"org.hibernate.cache.internal.NoCachingRegionFactory"
/>
<property
name=
"hibernate.cache.use_second_level_cache"
value=
"false"
/>
<property
name=
"hibernate.cache.use_query_cache"
value=
"false"
/>
<!-- net/sf/ehcache/hibernate/Provider -->
<!--
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.EhCacheRegionFactory />
<property name="hibernate.cache.use_second_level_cache" value="true" />
<property name="hibernate.cache.use_query_cache" value="true" />
-->
<!-- more human readable cache entries -->
<!-- <property name="hibernate.cache.use_structured_entries" value="true" /> -->
<!-- do not read to often from db just to save a few write operations -->
<!-- <property name="hibernate.cache.use_minimal_puts" value="false" /> -->
</properties>
</persistence-unit>
</persistence>
This diff is collapsed.
Click to expand it.
resources/log4j2.xml
0 → 100644
+
14
−
0
View file @
d954f907
<configuration
status=
"OFF"
>
<appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"morphilo %-5p %X{loginId} %c{1}: %m%n%ex"
/>
</Console>
</appenders>
<loggers>
<root
level=
"info"
>
<appender-ref
ref=
"Console"
/>
</root>
<logger
name=
"org.mycore.frontend.servlets.MCRServlet"
level=
"debug"
/>
<logger
name=
"custom.mycore.addons.morphilo.ProcessCorpusServlet"
level=
"debug"
/>
</loggers>
</configuration>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment