You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/02/21 15:38:43 UTC
[3/3] git commit: ISIS-695: fixing some issues with the blob/clob
converters
ISIS-695: fixing some issues with the blob/clob converters
(not that this fixed the issue, see ISIS-714).
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/5d5390bf
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/5d5390bf
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/5d5390bf
Branch: refs/heads/master
Commit: 5d5390bf5ee4b6157c255f9926fa815e6d629a67
Parents: 5b32892
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Fri Feb 21 14:36:20 2014 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Fri Feb 21 14:37:57 2014 +0000
----------------------------------------------------------------------
.../jdo-applib/src/main/resources/plugin.xml | 66 ------------------
.../objectstore/jdo/jdo-datanucleus/pom.xml | 16 +++++
.../src/main/java/META-INF/MANIFEST.MF | 6 ++
.../src/main/resources/plugin.xml | 71 ++++++++++++++++++++
4 files changed, 93 insertions(+), 66 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/5d5390bf/component/objectstore/jdo/jdo-applib/src/main/resources/plugin.xml
----------------------------------------------------------------------
diff --git a/component/objectstore/jdo/jdo-applib/src/main/resources/plugin.xml b/component/objectstore/jdo/jdo-applib/src/main/resources/plugin.xml
deleted file mode 100644
index 82d1d82..0000000
--- a/component/objectstore/jdo/jdo-applib/src/main/resources/plugin.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0"?>
-<!--
- 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.
--->
-<plugin>
-
- <extension point="org.datanucleus.java_type">
- <java-type
- name="org.apache.isis.applib.value.Date"
- persistent="true"
- dfg="true"
- embedded="true"
- long-converter="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisDateConverter"/>
- <java-type
- name="org.apache.isis.applib.value.DateTime"
- persistent="true"
- dfg="true"
- embedded="true"
- long-converter="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisDateTimeConverter"/>
-
- <java-type
- name="org.apache.isis.applib.value.Blob"
- persistent="true"
- dfg="false"
- embedded="true"
- string-converter="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisBlobConverter"/>
- <java-type
- name="org.apache.isis.applib.value.Clob"
- persistent="true"
- dfg="false"
- embedded="true"
- string-converter="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisClobConverter"/>
- </extension>
-
- <extension point="org.datanucleus.store_mapping">
- <mapping
- java-type="org.apache.isis.applib.value.Date"
- mapping-class="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisDateMapping"/>
- <mapping
- java-type="org.apache.isis.applib.value.DateTime"
- mapping-class="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisDateTimeMapping"/>
-
- <mapping
- java-type="org.apache.isis.applib.value.Blob"
- mapping-class="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisBlobMapping"/>
- <mapping
- java-type="org.apache.isis.applib.value.Clob"
- mapping-class="org.apache.isis.core.objectstore.jdo.datanucleus.valuetypes.IsisClobMapping"/>
-
- </extension>
-</plugin>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/5d5390bf/component/objectstore/jdo/jdo-datanucleus/pom.xml
----------------------------------------------------------------------
diff --git a/component/objectstore/jdo/jdo-datanucleus/pom.xml b/component/objectstore/jdo/jdo-datanucleus/pom.xml
index 36be7aa..1d63443 100644
--- a/component/objectstore/jdo/jdo-datanucleus/pom.xml
+++ b/component/objectstore/jdo/jdo-datanucleus/pom.xml
@@ -38,6 +38,22 @@
<url>http://isis.apache.org/${relativeUrl}</url>
<build>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
http://git-wip-us.apache.org/repos/asf/isis/blob/5d5390bf/component/objectstore/jdo/jdo-datanucleus/src/main/java/META-INF/MANIFEST.MF
----------------------------------------------------------------------
diff --git a/component/objectstore/jdo/jdo-datanucleus/src/main/java/META-INF/MANIFEST.MF b/component/objectstore/jdo/jdo-datanucleus/src/main/java/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..92bc478
--- /dev/null
+++ b/component/objectstore/jdo/jdo-datanucleus/src/main/java/META-INF/MANIFEST.MF
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Isis JDO ObjectStore DataNucleus Implementation
+Bundle-SymbolicName: org.apache.isis.objectstore.jdo.datanucleus
+Bundle-Version: 1.0.0
+Bundle-Vendor: Apache Isis
http://git-wip-us.apache.org/repos/asf/isis/blob/5d5390bf/component/objectstore/jdo/jdo-datanucleus/src/main/resources/plugin.xml
----------------------------------------------------------------------
diff --git a/component/objectstore/jdo/jdo-datanucleus/src/main/resources/plugin.xml b/component/objectstore/jdo/jdo-datanucleus/src/main/resources/plugin.xml
new file mode 100644
index 0000000..120da65
--- /dev/null
+++ b/component/objectstore/jdo/jdo-datanucleus/src/main/resources/plugin.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+<plugin
+ id="org.apache.isis.objectstore.jdo.datanucleus"
+ name="Apache Isis JDO ObjectStore DataNucleus Implementation"
+ provider-name="Apache Isis">
+
+ <!-- JAVA TYPES MAPPING, for "mapped" datastores -->
+ <extension point="org.datanucleus.store_mapping">
+ <mapping
+ java-type="org.apache.isis.applib.value.Date"
+ mapping-class="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisDateMapping"/>
+ <mapping
+ java-type="org.apache.isis.applib.value.DateTime"
+ mapping-class="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisDateTimeMapping"/>
+
+ <mapping
+ java-type="org.apache.isis.applib.value.Blob"
+ mapping-class="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisBlobMapping"/>
+ <mapping
+ java-type="org.apache.isis.applib.value.Clob"
+ mapping-class="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisClobMapping"/>
+
+ </extension>
+
+ <extension point="org.datanucleus.java_type">
+ <java-type
+ name="org.apache.isis.applib.value.Date"
+ persistent="true"
+ dfg="true"
+ embedded="true"
+ long-converter="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisDateConverter"/>
+ <java-type
+ name="org.apache.isis.applib.value.DateTime"
+ persistent="true"
+ dfg="true"
+ embedded="true"
+ long-converter="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisDateTimeConverter"/>
+
+ <java-type
+ name="org.apache.isis.applib.value.Blob"
+ persistent="true"
+ dfg="false"
+ embedded="true"
+ string-converter="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisBlobConverter"/>
+ <java-type
+ name="org.apache.isis.applib.value.Clob"
+ persistent="true"
+ dfg="false"
+ embedded="true"
+ string-converter="org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisClobConverter"/>
+ </extension>
+
+</plugin>