You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pp...@apache.org on 2010/05/21 00:11:09 UTC
svn commit: r946809 - in
/openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF:
persistence.xml web.xml
Author: ppoddar
Date: Thu May 20 22:11:09 2010
New Revision: 946809
URL: http://svn.apache.org/viewvc?rev=946809&view=rev
Log:
Add web configuration
Added:
openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml (with props)
Modified:
openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
Modified: openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml?rev=946809&r1=946808&r2=946809&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml (original)
+++ openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/persistence.xml Thu May 20 22:11:09 2010
@@ -19,8 +19,10 @@
-->
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- version="2.0">
+ version="1.0">
<persistence-unit name="OpenBooks">
+ <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+
<class>openbook.domain.Book</class>
<class>openbook.domain.Inventory</class>
<class>openbook.domain.PurchaseOrder</class>
@@ -43,7 +45,6 @@
<property name="openjpa.RuntimeUnenhancedClasses" value="unsupported"/>
<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
- <property name="openjpa.jdbc.JDBCListeners" value="openbook.client.SQLLogger"/>
<property name="openjpa.jdbc.QuerySQLCache" value="true(EnableStatistics=true)"/>
</properties>
Added: openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml?rev=946809&view=auto
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml (added)
+++ openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml Thu May 20 22:11:09 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>OpenBooks</display-name>
+ <welcome-file-list>
+ <welcome-file>intro.jsp</welcome-file>
+ </welcome-file-list>
+ <distributable/>
+</web-app>
Propchange: openjpa/trunk/openjpa-examples/openbooks/src/main/resources/META-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native