You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by al...@apache.org on 2012/11/21 16:23:47 UTC
svn commit: r1412148 - /openjpa/site/trunk/content/faq.mdtext
Author: allee8285
Date: Wed Nov 21 15:23:46 2012
New Revision: 1412148
URL: http://svn.apache.org/viewvc?rev=1412148&view=rev
Log:
CMS migration updates.
Modified:
openjpa/site/trunk/content/faq.mdtext
Modified: openjpa/site/trunk/content/faq.mdtext
URL: http://svn.apache.org/viewvc/openjpa/site/trunk/content/faq.mdtext?rev=1412148&r1=1412147&r2=1412148&view=diff
==============================================================================
--- openjpa/site/trunk/content/faq.mdtext (original)
+++ openjpa/site/trunk/content/faq.mdtext Wed Nov 21 15:23:46 2012
@@ -70,7 +70,6 @@ chapter on [Logging](http://openjpa.apac
. The simplest example of enabling verbose logging is by using the
following property in your {{persistence.xml}} file:
- {code:XML}
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0">
@@ -94,7 +93,6 @@ configurable via the JDBC DataSource API
database and the [Apache DBCP|http://jakarta.apache.org/commons/dbcp/]
connection pool:
- {code:XML}
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0">
@@ -126,8 +124,7 @@ SQL statements to satisfy foreign key co
OpenJPA to read the existing foreign key information from the database
schema:
- {code:XML}
- <property name="openjpa.jdbc.SchemaFactory" value="native(ForeignKeys=true)"/>
+ <property name="openjpa.jdbc.SchemaFactory" value="native(ForeignKeys=true)"/>
See the documentation on [Schema Factory](http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_schema_info_list) for further details.
@@ -138,8 +135,8 @@ By default, OpenJPA does not create fore
that gets created according to O-R mapping annotation/descriptors. You can
change this default behavior via following configuration property :
- <property name="openjpa.jdbc.MappingDefaults" \
- value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
+ <property name="openjpa.jdbc.MappingDefaults" \
+ value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
to create foreign key constraints on the database tables generated by OpenJPA.