cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmen...@apache.org
Subject svn commit: r630475 - in /cayenne/main/trunk: docs/doc/src/main/resources/RELEASE-NOTES.txt framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java
Date Sat, 23 Feb 2008 17:02:07 GMT
Author: kmenard
Date: Sat Feb 23 09:02:06 2008
New Revision: 630475

URL: http://svn.apache.org/viewvc?rev=630475&view=rev
Log:
Fixed CAY-982: Client class and superclass names not auto-populated for new ObjEntity.

Modified:
    cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java

Modified: cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt?rev=630475&r1=630474&r2=630475&view=diff
==============================================================================
--- cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt (original)
+++ cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt Sat Feb 23 09:02:06 2008
@@ -21,7 +21,8 @@
 
 Bug fixes since M3:
 
-CAY-574: DataObjectUtils 'objectForPK' should work on the client
+CAY-574 DataObjectUtils 'objectForPK' should work on the client
+CAY-982 Client class and superclass names not auto-populated for new ObjEntity.
 CAY-983 POST_LOAD called twice
 CAY-984 Runtime relationships leak into CayenneModeler
 CAY-986 LOCAL_CACHE policy fails when query is paged

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java?rev=630475&r1=630474&r2=630475&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/CreateObjEntityAction.java
Sat Feb 23 09:02:06 2008
@@ -92,6 +92,19 @@
             entity.setClassName(pkg + entity.getName());
         }
 
+        if (dataMap.isClientSupported()) {
+            String clientPkg = dataMap.getDefaultPackage();
+            if (clientPkg != null) {
+                if (!clientPkg.endsWith(".")) {
+                    clientPkg = clientPkg + ".";
+                }
+
+                entity.setClientClassName(clientPkg + entity.getName());
+            }
+
+            entity.setClientSuperClassName(dataMap.getDefaultClientSuperclass());
+        }
+
         dataMap.addObjEntity(entity);
 
         // perform the merge



Mime
View raw message