You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2007/12/23 21:09:37 UTC
svn commit: r606607 -
/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java
Author: aadamchik
Date: Sun Dec 23 12:09:36 2007
New Revision: 606607
URL: http://svn.apache.org/viewvc?rev=606607&view=rev
Log:
CAY-948 Implement flattened attributes in Cayenne
(fixing naming of the flattened property)
Modified:
cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java
Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java?rev=606607&r1=606606&r2=606607&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java (original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/map/ObjAttribute.java Sun Dec 23 12:09:36 2007
@@ -228,8 +228,21 @@
return dbAttributePath;
}
+ /**
+ * @deprecated since 3.0 use 'isFlattened'.
+ */
public boolean isCompound() {
- return (dbAttributePath != null && dbAttributePath.indexOf('.') >= 0);
+ return isFlattened();
+ }
+
+ /**
+ * Returns whether this DbAttribute is "flattened", meaning that it points to a column
+ * from an entity other than the DbEntity mapped to the parent ObjEntity.
+ *
+ * @since 3.0
+ */
+ public boolean isFlattened() {
+ return dbAttributePath != null && dbAttributePath.indexOf('.') >= 0;
}
/**