Pluggable Persistence Component
-------------------------------
Key: WOOKIE-144
URL: https://issues.apache.org/jira/browse/WOOKIE-144
Project: Wookie
Issue Type: Improvement
Components: Server
Affects Versions: 0.8.3
Environment: Replacing Hibernate with Pluggable JPA/JCR persistence
component.
Reporter: Randy Watler
Fix For: 0.8.3
Attachments: readme.txt, wookie-persistence.tar.gz
Attached is a stand-alone maven project that contains the proposed pluggable
persistence component, configuration, and test cases. Please review the
interesting files and packages outlined below. If there are any changes you'd
like me to make, now would be the best time. Once things look good to the
wookie team, I will integrate this back into the wookie tree proper and provide
an initial patch to seed the integration branch with. I do not anticipate it
taking very long to generate the patch since this prototype API was designed to
minimize the integration effort. Moving the build extensions and tests from
Maven to Ant/Ivy probably represents the bulk of the work, and that should not
be too difficult.
Wookie JPA/JCR Persistence Prototype Project
----------------------------------------------
Constructed using the following:
Maven 2.2.1
Java 1.6.0
Ant 1.7.0
OpenJPA 2.2.0
Jackrabbit 2.1.0/1.5.3
DDLUtils 1.0
Interesting files and packages:
DDL utils schema file: src/main/ddl-schema/wookie-schema.xml
Generated SQL Schema files: target/classes/org/apache/wookie/beans/jpa/*.sql
JCR node type schema:
src/main/resources/org/apache/wookie/beans/jcr/wookie-schema.cnd
Bean interfaces: src/main/java/org/apache/wookie/beans/*.java
Persistence manager interface:
src/main/java/org/apache/wookie/beans/util/IPersistenceManager.java
Persistence manager factory:
src/main/java/org/apache/wookie/beans/util/PersistenceManagerFactory.java
JPA implementation:
src/main/java/org/apache/wookie/beans/jpa/JPAPersistenceManager.java
JCR implementation:
src/main/java/org/apache/wookie/beans/jcr/JCRPersistenceManager.java
Tests: src/test/java/org/apache/wookie/beans/*.java
To build and run tests:
> export MAVEN_OPTS="-server -Djava.net.preferIPv4Stack=true"
> mvn clean install
To prepare project for Eclipse:
> mvn eclipse:eclipse
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.