cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1425936 [3/3] - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/
Date Wed, 26 Dec 2012 15:00:04 GMT
Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_Thing.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_Thing.java?rev=1425936&r1=1425935&r2=1425936&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_Thing.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_Thing.java
Wed Dec 26 15:00:02 2012
@@ -3,6 +3,7 @@ package org.apache.cayenne.testdo.testma
 import java.util.List;
 
 import org.apache.cayenne.CayenneDataObject;
+import org.apache.cayenne.exp.Property;
 import org.apache.cayenne.testdo.testmap.Ball;
 import org.apache.cayenne.testdo.testmap.Box;
 
@@ -14,13 +15,22 @@ import org.apache.cayenne.testdo.testmap
  */
 public abstract class _Thing extends CayenneDataObject {
 
+    @Deprecated
     public static final String VOLUME_PROPERTY = "volume";
+    @Deprecated
     public static final String WEIGHT_PROPERTY = "weight";
+    @Deprecated
     public static final String BALL_PROPERTY = "ball";
+    @Deprecated
     public static final String BOX_PROPERTY = "box";
 
     public static final String ID_PK_COLUMN = "ID";
 
+    public static final Property<Integer> VOLUME = new Property<Integer>("volume");
+    public static final Property<Integer> WEIGHT = new Property<Integer>("weight");
+    public static final Property<Ball> BALL = new Property<Ball>("ball");
+    public static final Property<List<Box>> BOX = new Property<List<Box>>("box");
+
     public void setVolume(Integer volume) {
         writeProperty("volume", volume);
     }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_TinyintTestEntity.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_TinyintTestEntity.java?rev=1425936&r1=1425935&r2=1425936&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_TinyintTestEntity.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_TinyintTestEntity.java
Wed Dec 26 15:00:02 2012
@@ -1,22 +1,28 @@
 package org.apache.cayenne.testdo.testmap.auto;
 
-/** Class _TinyintTestEntity was generated by Cayenne.
-  * It is probably a good idea to avoid changing this class manually, 
-  * since it may be overwritten next time code is regenerated. 
-  * If you need to make any customizations, please use subclass. 
-  */
-public abstract class _TinyintTestEntity extends org.apache.cayenne.CayenneDataObject {
+import org.apache.cayenne.CayenneDataObject;
+import org.apache.cayenne.exp.Property;
 
+/**
+ * Class _TinyintTestEntity was generated by Cayenne.
+ * It is probably a good idea to avoid changing this class manually,
+ * since it may be overwritten next time code is regenerated.
+ * If you need to make any customizations, please use subclass.
+ */
+public abstract class _TinyintTestEntity extends CayenneDataObject {
+
+    @Deprecated
     public static final String TINYINT_COL_PROPERTY = "tinyintCol";
 
     public static final String ID_PK_COLUMN = "ID";
 
+    public static final Property<Byte> TINYINT_COL = new Property<Byte>("tinyintCol");
+
     public void setTinyintCol(Byte tinyintCol) {
         writeProperty("tinyintCol", tinyintCol);
     }
     public Byte getTinyintCol() {
         return (Byte)readProperty("tinyintCol");
     }
-    
-    
+
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidPkEntity.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidPkEntity.java?rev=1425936&r1=1425935&r2=1425936&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidPkEntity.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidPkEntity.java
Wed Dec 26 15:00:02 2012
@@ -3,6 +3,7 @@ package org.apache.cayenne.testdo.testma
 import java.util.UUID;
 
 import org.apache.cayenne.CayenneDataObject;
+import org.apache.cayenne.exp.Property;
 
 /**
  * Class _UuidPkEntity was generated by Cayenne.
@@ -12,15 +13,18 @@ import org.apache.cayenne.CayenneDataObj
  */
 public abstract class _UuidPkEntity extends CayenneDataObject {
 
+    @Deprecated
     public static final String ID_PROPERTY = "id";
 
     public static final String ID_PK_COLUMN = "ID";
 
+    public static final Property<UUID> ID = new Property<UUID>("id");
+
     public void setId(UUID id) {
-        writeProperty(ID_PROPERTY, id);
+        writeProperty("id", id);
     }
     public UUID getId() {
-        return (UUID)readProperty(ID_PROPERTY);
+        return (UUID)readProperty("id");
     }
 
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidTestEntity.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidTestEntity.java?rev=1425936&r1=1425935&r2=1425936&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidTestEntity.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/testdo/testmap/auto/_UuidTestEntity.java
Wed Dec 26 15:00:02 2012
@@ -3,6 +3,7 @@ package org.apache.cayenne.testdo.testma
 import java.util.UUID;
 
 import org.apache.cayenne.CayenneDataObject;
+import org.apache.cayenne.exp.Property;
 
 /**
  * Class _UuidTestEntity was generated by Cayenne.
@@ -12,10 +13,13 @@ import org.apache.cayenne.CayenneDataObj
  */
 public abstract class _UuidTestEntity extends CayenneDataObject {
 
+    @Deprecated
     public static final String UUID_PROPERTY = "uuid";
 
     public static final String ID_PK_COLUMN = "ID";
 
+    public static final Property<UUID> UUID = new Property<UUID>("uuid");
+
     public void setUuid(UUID uuid) {
         writeProperty("uuid", uuid);
     }



Mime
View raw message