blob: 5bef3b8ddf468dee0bbe87168d1b6cdd4392b368 [file] [log] [blame]
<?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="employee" transaction-type="RESOURCE_LOCAL">
<class>model.SmallProject</class>
<class>model.Project</class>
<class>model.PhoneNumber</class>
<class>model.LargeProject</class>
<class>model.EmploymentPeriod</class>
<class>model.Employee</class>
<class>model.Address</class>
<class>model.EmailAddress</class>
<class>model.JobTitle</class>
<class>model.Degree</class>
<properties>
<!-- Default database login using Oracle for EclipseLink's internal connection pool,
change this to access your own database. -->
<property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver" />
<property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:1521:orcl" />
<property name="javax.persistence.jdbc.user" value="scott" />
<property name="javax.persistence.jdbc.password" value="tiger" />
<!-- The database platform is auto-detected by default,
if you want to set a specific platform this can be set. -->
<!-- property name=""eclipselink.target-database" value="Oracle" / -->
<!-- Optimize database writes to use batching. -->
<!-- property name="eclipselink.jdbc.batch-writing" value="JDBC" / -->
<!-- Avoids flush being triggered before every query execution. -->
<property name="eclipselink.persistence-context.flush-mode" value="COMMIT" />
<!-- Configure connection pool. -->
<property name="eclipselink.jdbc.connections.initial" value="1" />
<property name="eclipselink.jdbc.connections.min" value="64" />
<property name="eclipselink.jdbc.connections.max" value="64" />
<!-- Enabled statement caching, this is only required when using internal connection pooling,
when using a DataSource, statement caching must be configured in the DataSource. -->
<property name="eclipselink.jdbc.cache-statements" value="true" />
<!-- In JSE no server platform is used, if you wish to use this example is a JEE server with JTA,
then you need to set this. -->
<!-- property name="eclipselink.target-server" value="WebLogic" / -->
<!-- Configure cache size. -->
<property name="eclipselink.cache.size.default" value="1000" />
<!-- If desired, this option would disable caching. -->
<!-- property name="eclipselink.cache.shared.default" value="false" / -->
<!-- If desired, this option would force a JDBC connection to be held for the duration of an EntityManager,
instead of returned to the pool in between queries/transactions. -->
<!-- property name="eclipselink.jdbc.exclusive-connection.mode" value="Always" / -->
<!-- Configure database to be created on startup if not already existing. -->
<!-- property name="eclipselink.ddl-generation" value="create-tables" / -->
<!-- To drop and replace existing schema this can be used. -->
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<!-- Configure simple SQL logging for demonstration. -->
<!-- property name="eclipselink.logging.level" value="FINE" / -->
<property name="eclipselink.logging.thread" value="false" />
<property name="eclipselink.logging.session" value="false" />
<property name="eclipselink.logging.exceptions" value="false" />
<property name="eclipselink.logging.timestamp" value="false" />
</properties>
</persistence-unit>
</persistence>