Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. ...
  2. <!-- Configuring Eclipse Link -->
  3. <property name="javax.persistence.jdbc.driver" value="net.sourceforge.jtds.jdbc.Driver"/>
  4. <property name="javax.persistence.jdbc.url" value="jdbc:jtds:sqlserver://SERVER/dev;instance=MSSQL2008R2"/>
  5. <property name="javax.persistence.jdbc.user" value="user"/>
  6. <property name="javax.persistence.jdbc.password" value="password"/>
  7. <property name="eclipselink.persistence-context.flush-mode" value="commit" /> <!-- Flushing occurs at transaction commit. (https://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/p_persistence_context_flushmode.htm)-->
  8.  
  9. <!-- We use the EclipseLink internal components (https://www.eclipse.org/eclipselink/documentation/2.6/jpa/extensions/persistenceproperties_ref.htm)-->
  10. <!-- Eclipselink jdbc configuration -->
  11. <property name="eclipselink.jdbc.batch-writing" value="JDBC"/> <!-- Batch-writing is supported by mssql and our jdbc driver (https://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/p_jdbc_batchwriting.htm) -->
  12. <!-- <property name="eclipselink.jdbc.batch-writing.size" value="10000"/> --> <!--Performance testing http://java-persistence-performance.blogspot.ch/2013/05/batch-writing-and-dynamic-vs.html -->
  13. <property name="eclipselink.jdbc.bind-parameters" value="true"/> <!-- Parameterized sql queries -->
  14. <property name="eclipselink.jdbc.cache-statements" value="true"/> <!-- https://docs.oracle.com/middleware/1212/core/ASPER/toplink.htm#ASPER99838 -->
  15. <property name="eclipselink.jdbc.cache-statements.size" value="10000"/>
  16. <property name="eclipselink.jdbc.allow-native-sql-queries" value="false"/> <!-- We explicitly set this, even though it is disabled by multitenancy by default -->
  17.  
  18. <!-- Eclipselink connection pool configuration-->
  19. <property name="eclipselink.connection-pool.default.initial" value="50" />
  20. <property name="eclipselink.connection-pool.default.min" value="50"/>
  21. <property name="eclipselink.connection-pool.default.max" value="100"/>
  22. <property name="eclipselink.connection-pool.default.url" value="jdbc:jtds:sqlserver://SERVER/dev;instance=MSSQL2008R2"/>
  23.  
  24. <!-- Eclipselink cache configuration -->
  25. <property name="eclipselink.cache.shared.default" value="true" />
  26.  
  27. <!-- Eclipselink logging configuration -->
  28. <property name="eclipselink.logging.level" value="OFF"/> <!-- How much log should be shown | from: https://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Log_Level_Configuration-->
  29. <property name="eclipselink.logging.level.sql" value="OFF"/> <!-- How to show the sql queries -->
  30.  
  31. <property name="eclipselink.target-database" value="SQLServer"/> <!-- What sql database is used | from: http://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/p_target_database.htm-->
  32. <property name="eclipselink.ddl-generation" value="none"/>
  33. <property name="eclipselink.session.customizer" value="platform.data.EclipseLinkSessionCustomizer"/> <!-- Defines a naming strategy -->
  34. <property name="eclipselink.multitenant.tenants-share-emf" value="false"/>
  35. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement