File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
mir-wizard/src/main/java/org/mycore/mir/wizard/command Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ public class MIRWizardGenerateJPAConfig extends MIRWizardCommand {
50
50
51
51
private static final String COMPLEX_DATABASE_PREFIX
52
52
= MCRPersistenceProvider .JPA_PERSISTENCE_UNIT_PROPERTY_NAME + PERSISTENCE_UNIT_NAME + "." ;
53
+
54
+ public static final String HIKARI_PROVIDER = "org.hibernate.hikaricp.internal.HikariCPConnectionProvider" ;
53
55
54
56
public MIRWizardGenerateJPAConfig () {
55
57
this ("persistence.properties" );
@@ -62,10 +64,12 @@ private MIRWizardGenerateJPAConfig(String name) {
62
64
private static Properties getDefaultProps () {
63
65
Properties props = new Properties ();
64
66
65
- props .setProperty (COMPLEX_DATABASE_PREFIX + "Class" ,
66
- MCRSimpleConfigPersistenceUnitDescriptor .class .getName ());
67
- props .setProperty ("MCR.JPA.Connection.MaximumPoolSize" , "10" );
67
+ props .setProperty (COMPLEX_DATABASE_PREFIX + "Class" , MCRSimpleConfigPersistenceUnitDescriptor .class .getName ());
68
68
props .setProperty (COMPLEX_DATABASE_PREFIX + "Properties.hibernate.auto_quote_keyword" , "true" );
69
+ props .setProperty ("MCR.JPA.Cache.UseSecondLevelCache" , "false" );
70
+ props .setProperty ("MCR.JPA.Hbm2ddlAuto" , "validate" );
71
+ props .setProperty ("MCR.JPA.Connection.ProviderClass" , HIKARI_PROVIDER );
72
+ props .setProperty ("MCR.JPA.Connection.MaximumPoolSize" , "10" );
69
73
70
74
return props ;
71
75
}
You can’t perform that action at this time.
0 commit comments