cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnth...@apache.org
Subject svn commit: r1489617 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java
Date Tue, 04 Jun 2013 21:24:14 GMT
Author: johnthuss
Date: Tue Jun  4 21:24:00 2013
New Revision: 1489617

URL: http://svn.apache.org/r1489617
Log:
Relax type bounds on objectFromDataRow to allow for Persistent subclasses too

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java?rev=1489617&r1=1489616&r2=1489617&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataContext.java
Tue Jun  4 21:24:00 2013
@@ -414,7 +414,7 @@ public class DataContext extends BaseCon
      * @see DataRow
      * @since 3.1
      */
-    public <T extends DataObject> T objectFromDataRow(Class<T> objectClass, DataRow
dataRow) {
+    public <T extends Persistent> T objectFromDataRow(Class<T> objectClass, DataRow
dataRow) {
         ObjEntity entity = this.getEntityResolver().lookupObjEntity(objectClass);
 
         if (entity == null) {



Mime
View raw message