Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2216 - in development/planet/users/makas/xdoclet: . kodo-test kodo-test/src kodo-test/src/main kodo-test/src/main/net kodo-test/src/main/net/dpml kodo-test/src/main/net/dpml/xdoclet kodo-test/src/main/net/dpml/xdoclet/jdo kodo-test/src/main/net/dpml/xdoclet/jdo/test kodo-test/target kodo-test/target/build kodo-test/target/build/main kodo-test/target/build/main/net kodo-test/target/build/main/net/dpml kodo-test/target/build/main/net/dpml/xdoclet kodo-test/target/build/main/net/dpml/xdoclet/jdo kodo-test/target/build/main/net/dpml/xdoclet/jdo/test kodo-test/target/classes kodo-test/target/classes/com kodo-test/target/classes/com/ewarna kodo-test/target/classes/com/ewarna/pdm kodo-test/target/classes/com/ewarna/pdm/entities kodo-test/target/classes/com/ewarna/pdm/entities/achievability kodo-test/target/classes/net kodo-test/target/classes/net/dpml kodo-test/target/classes/net/dpml/xdoclet kodo-test/target/classes/net/dpml/xdoclet/jdo kodo-test/target/classes/net/dpml/xdoclet/jdo/test kodo-test/target/test

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: ducknight AT maxis.net.my
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2216 - in development/planet/users/makas/xdoclet: . kodo-test kodo-test/src kodo-test/src/main kodo-test/src/main/net kodo-test/src/main/net/dpml kodo-test/src/main/net/dpml/xdoclet kodo-test/src/main/net/dpml/xdoclet/jdo kodo-test/src/main/net/dpml/xdoclet/jdo/test kodo-test/target kodo-test/target/build kodo-test/target/build/main kodo-test/target/build/main/net kodo-test/target/build/main/net/dpml kodo-test/target/build/main/net/dpml/xdoclet kodo-test/target/build/main/net/dpml/xdoclet/jdo kodo-test/target/build/main/net/dpml/xdoclet/jdo/test kodo-test/target/classes kodo-test/target/classes/com kodo-test/target/classes/com/ewarna kodo-test/target/classes/com/ewarna/pdm kodo-test/target/classes/com/ewarna/pdm/entities kodo-test/target/classes/com/ewarna/pdm/entities/achievability kodo-test/target/classes/net kodo-test/target/classes/net/dpml kodo-test/target/classes/net/dpml/xdoclet kodo-test/target/classes/net/dpml/xdoclet/jdo kodo-test/target/classes/net/dpml/xdoclet/jdo/test kodo-test/target/test
  • Date: Tue, 05 Apr 2005 17:10:39 -0400

Author: ducknight AT maxis.net.my
Date: Tue Apr 5 17:10:36 2005
New Revision: 2216

Added:
development/planet/users/makas/xdoclet/kodo-test/
development/planet/users/makas/xdoclet/kodo-test/build.xml
development/planet/users/makas/xdoclet/kodo-test/src/
development/planet/users/makas/xdoclet/kodo-test/src/main/
development/planet/users/makas/xdoclet/kodo-test/src/main/net/
development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/
development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/

development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/jdo/

development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/jdo/test/

development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/jdo/test/EntityTest.java
development/planet/users/makas/xdoclet/kodo-test/target/
development/planet/users/makas/xdoclet/kodo-test/target/build/
development/planet/users/makas/xdoclet/kodo-test/target/build/main/
development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/

development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/

development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/

development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/jdo/

development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/jdo/test/

development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/jdo/test/EntityTest.java
development/planet/users/makas/xdoclet/kodo-test/target/classes/
development/planet/users/makas/xdoclet/kodo-test/target/classes/com/
development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/

development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/

development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/

development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/achievability/

development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/achievability/EntityTest$ID.class
(contents, props changed)

development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/achievability/EntityTest.class
(contents, props changed)
development/planet/users/makas/xdoclet/kodo-test/target/classes/net/
development/planet/users/makas/xdoclet/kodo-test/target/classes/net/dpml/

development/planet/users/makas/xdoclet/kodo-test/target/classes/net/dpml/xdoclet/

development/planet/users/makas/xdoclet/kodo-test/target/classes/net/dpml/xdoclet/jdo/

development/planet/users/makas/xdoclet/kodo-test/target/classes/net/dpml/xdoclet/jdo/test/
development/planet/users/makas/xdoclet/kodo-test/target/test/
Modified:
development/planet/users/makas/xdoclet/index.xml
Log:
Added simple test project for plugin

Modified: development/planet/users/makas/xdoclet/index.xml
==============================================================================
--- development/planet/users/makas/xdoclet/index.xml (original)
+++ development/planet/users/makas/xdoclet/index.xml Tue Apr 5 17:10:36
2005
@@ -46,6 +46,17 @@
<include key="dpml-meta-tools"/>
</plugins>
</project>
+ <project basedir="kodo-test">
+ <info>
+ <group>dpml/xdoclet/jdo</group>
+ <name>dpml-xdoclet-kodo-test</name>
+ <version>1.0.0</version>
+ <type>jar</type>
+ </info>
+ <plugins>
+ <include key="dpml-xdoclet-kodo-task"/>
+ </plugins>
+ </project>
<resource>
<info>
<name>xdoclet</name>

Added: development/planet/users/makas/xdoclet/kodo-test/build.xml
==============================================================================
--- (empty file)
+++ development/planet/users/makas/xdoclet/kodo-test/build.xml Tue Apr 5
17:10:36 2005
@@ -0,0 +1,17 @@
+<project name="dpml-xdoclet-kodo-test" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
+ xmlns:kodo="antlib:net.dpml.jdo.kodo"
+ xmlns:xdoclet="antlib:net.dpml.xdoclet.jdo">
+ <transit:import uri="artifact:template:dpml/magic/standard" />
+ <target name="build" depends="standard.build">
+ <xdoclet:jdodoclet destdir="${dpml.classes}">
+ <fileset dir="${dpml.src}">
+ <include name="**/*.java"/>
+ </fileset>
+ <!-- perform the actual transformation here -->
+ <jdometadata project="package" generation="project"/>
+ <kodo/>
+ </xdoclet:jdodoclet>
+ </target>
+</project>

Added:
development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/jdo/test/EntityTest.java
==============================================================================
--- (empty file)
+++
development/planet/users/makas/xdoclet/kodo-test/src/main/net/dpml/xdoclet/jdo/test/EntityTest.java
Tue Apr 5 17:10:36 2005
@@ -0,0 +1,126 @@
+/*
+ * DyePairPE.java
+ *
+ * Created on November 7, 2002, 10:27 AM
+ */
+
+package com.ewarna.pdm.entities.achievability;
+
+/**
+ * @jdo.persistence-capable
+ * identity-type="application"
+ * objectid-class="com.ewarna.pdm.entities.achievability.EntityTest$ID"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-map-name"
+ * value="base"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-map"
+ * value="base"
+ * content="<extension vendor-name=\"kodo\" key=\"table\"
value=\"ENTITYTEST\"/>"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-ind-name"
+ * value="in-class-name"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-ind"
+ * value="in-class-name"
+ * content="<extension vendor-name=\"kodo\" key=\"column\"
value=\"JDOCLASS\"/>"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-version-ind-name"
+ * value="version-number"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-version-ind"
+ * value="version-number"
+ * content="<extension vendor-name=\"kodo\" key=\"column\"
value=\"JDOVERSION\"/>"
+ * @author Makas Lau makas AT ewarna.com
+ */
+public class EntityTest
+{
+ /**
+ * @jdo.field
+ * primary-key="true"
+ * @jdo.field-vendor-extension
+ * vendor-name="kodo" key="jdbc-field-map-name" value="value"
+ * @jdo.field-vendor-extension vendor-name="kodo" key="jdbc-field-map"
+ * value="value" content="
+ * <extension vendor-name=\"kodo\" key=\"column\" value=\"ID\"/>"
+ */
+ private String m_ID;
+
+ public EntityTest()
+ {
+ }
+
+ public String getID()
+ {
+ return m_ID;
+ }
+
+ public void setID(String id)
+ {
+ m_ID = id;
+ }
+
+ public static class ID
+ implements java.io.Serializable
+ {
+ // each primary key field in the class must have a
+ // corresponding public field in the identity class
+ public String m_ID;
+
+ /**
+ * Default constructor requirement.
+ */
+ public ID ()
+ {
+ }
+
+ /**
+ * String constructor requirement.
+ */
+ public ID (String str)
+ {
+ m_ID = str;
+ }
+
+ /**
+ * toString must return a string parsable by the string constructor.
+ */
+ public String toString ()
+ {
+ return m_ID;
+ }
+
+ /**
+ * Equality must be implemented in terms of primary key field
+ * equality, and must use instanceof rather than comparing
+ * classes directly (some JDO implementations may subclass JDO
+ * identity class).
+ */
+ public boolean equals (Object other)
+ {
+ if (other == this)
+ return true;
+ if (!(other instanceof ID))
+ return false;
+
+ ID mi = (ID) other;
+ return ((m_ID == null && mi.m_ID == null)
+ || (m_ID != null && m_ID.equals (mi.m_ID)));
+ }
+
+ /**
+ * Hashcode must also depend on primary key values.
+ */
+ public int hashCode ()
+ {
+ return ((m_ID == null) ? 0 : m_ID.hashCode ())
+ % Integer.MAX_VALUE;
+ }
+ }
+}
\ No newline at end of file

Added:
development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/jdo/test/EntityTest.java
==============================================================================
--- (empty file)
+++
development/planet/users/makas/xdoclet/kodo-test/target/build/main/net/dpml/xdoclet/jdo/test/EntityTest.java
Tue Apr 5 17:10:36 2005
@@ -0,0 +1,126 @@
+/*
+ * DyePairPE.java
+ *
+ * Created on November 7, 2002, 10:27 AM
+ */
+
+package com.ewarna.pdm.entities.achievability;
+
+/**
+ * @jdo.persistence-capable
+ * identity-type="application"
+ * objectid-class="com.ewarna.pdm.entities.achievability.EntityTest$ID"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-map-name"
+ * value="base"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-map"
+ * value="base"
+ * content="<extension vendor-name=\"kodo\" key=\"table\"
value=\"ENTITYTEST\"/>"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-ind-name"
+ * value="in-class-name"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-class-ind"
+ * value="in-class-name"
+ * content="<extension vendor-name=\"kodo\" key=\"column\"
value=\"JDOCLASS\"/>"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-version-ind-name"
+ * value="version-number"
+ * @jdo.class-vendor-extension
+ * vendor-name="kodo"
+ * key="jdbc-version-ind"
+ * value="version-number"
+ * content="<extension vendor-name=\"kodo\" key=\"column\"
value=\"JDOVERSION\"/>"
+ * @author Makas Lau makas AT ewarna.com
+ */
+public class EntityTest
+{
+ /**
+ * @jdo.field
+ * primary-key="true"
+ * @jdo.field-vendor-extension
+ * vendor-name="kodo" key="jdbc-field-map-name" value="value"
+ * @jdo.field-vendor-extension vendor-name="kodo" key="jdbc-field-map"
+ * value="value" content="
+ * <extension vendor-name=\"kodo\" key=\"column\" value=\"ID\"/>"
+ */
+ private String m_ID;
+
+ public EntityTest()
+ {
+ }
+
+ public String getID()
+ {
+ return m_ID;
+ }
+
+ public void setID(String id)
+ {
+ m_ID = id;
+ }
+
+ public static class ID
+ implements java.io.Serializable
+ {
+ // each primary key field in the class must have a
+ // corresponding public field in the identity class
+ public String m_ID;
+
+ /**
+ * Default constructor requirement.
+ */
+ public ID ()
+ {
+ }
+
+ /**
+ * String constructor requirement.
+ */
+ public ID (String str)
+ {
+ m_ID = str;
+ }
+
+ /**
+ * toString must return a string parsable by the string constructor.
+ */
+ public String toString ()
+ {
+ return m_ID;
+ }
+
+ /**
+ * Equality must be implemented in terms of primary key field
+ * equality, and must use instanceof rather than comparing
+ * classes directly (some JDO implementations may subclass JDO
+ * identity class).
+ */
+ public boolean equals (Object other)
+ {
+ if (other == this)
+ return true;
+ if (!(other instanceof ID))
+ return false;
+
+ ID mi = (ID) other;
+ return ((m_ID == null && mi.m_ID == null)
+ || (m_ID != null && m_ID.equals (mi.m_ID)));
+ }
+
+ /**
+ * Hashcode must also depend on primary key values.
+ */
+ public int hashCode ()
+ {
+ return ((m_ID == null) ? 0 : m_ID.hashCode ())
+ % Integer.MAX_VALUE;
+ }
+ }
+}
\ No newline at end of file

Added:
development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/achievability/EntityTest$ID.class
==============================================================================
Binary file. No diff available.

Added:
development/planet/users/makas/xdoclet/kodo-test/target/classes/com/ewarna/pdm/entities/achievability/EntityTest.class
==============================================================================
Binary file. No diff available.



  • svn commit: r2216 - in development/planet/users/makas/xdoclet: . kodo-test kodo-test/src kodo-test/src/main kodo-test/src/main/net kodo-test/src/main/net/dpml kodo-test/src/main/net/dpml/xdoclet kodo-test/src/main/net/dpml/xdoclet/jdo kodo-test/src/main/net/dpml/xdoclet/jdo/test kodo-test/target kodo-test/target/build kodo-test/target/build/main kodo-test/target/build/main/net kodo-test/target/build/main/net/dpml kodo-test/target/build/main/net/dpml/xdoclet kodo-test/target/build/main/net/dpml/xdoclet/jdo kodo-test/target/build/main/net/dpml/xdoclet/jdo/test kodo-test/target/classes kodo-test/target/classes/com kodo-test/target/classes/com/ewarna kodo-test/target/classes/com/ewarna/pdm kodo-test/target/classes/com/ewarna/pdm/entities kodo-test/target/classes/com/ewarna/pdm/entities/achievability kodo-test/target/classes/net kodo-test/target/classes/net/dpml kodo-test/target/classes/net/dpml/xdoclet kodo-test/target/classes/net/dpml/xdoclet/jdo kodo-test/target/classes/net/dpml/xdoclet/jdo/test kodo-test/target/test, ducknight, 04/05/2005

Archive powered by MHonArc 2.6.24.

Top of Page