src/main/resources/META-INF/persistence.xml
author indvdum
Tue, 16 Aug 2011 09:09:18 +0300
changeset 6 a0d8aa779e50
parent 5 14e23102379e
child 7 aaae4f8055f4
permissions -rw-r--r--
More JPA objects
indvdum@5
     1
<?xml version="1.0" encoding="UTF-8"?>
indvdum@5
     2
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
indvdum@5
     3
	version="1.0">
indvdum@5
     4
	<persistence-unit name="mywork">
indvdum@5
     5
		<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
indvdum@5
     6
indvdum@5
     7
		<class>ru.indvdum.mywork.openjpa.model.Day</class>
indvdum@5
     8
indvdum@5
     9
		<properties>
indvdum@5
    10
			<property name="openjpa.ConnectionPassword" value="1"/>
indvdum@5
    11
			<property name="openjpa.ConnectionDriverName" value="oracle.jdbc.OracleDriver"/>
indvdum@5
    12
			<property name="openjpa.ConnectionUserName" value="d_mywork"/>
indvdum@5
    13
			<property name="openjpa.ConnectionURL" value="jdbc:oracle:thin:@minidev:1521:ora"/>
indvdum@5
    14
			<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
indvdum@5
    15
		</properties>
indvdum@5
    16
	</persistence-unit>
indvdum@5
    17
</persistence>