db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r381450 - in /db/ojb/branches/OJB_1_0_RELEASE: lib/DdlUtils-1.0-dev.jar src/java/org/apache/ojb/broker/ant/PreparedModel.java src/schema/ojbtest-data-new.xml
Date Mon, 27 Feb 2006 21:18:21 GMT
Author: tomdz
Date: Mon Feb 27 13:18:19 2006
New Revision: 381450

URL: http://svn.apache.org/viewcvs?rev=381450&view=rev
Log:
Fixed test data
Updated DdlUtils

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/lib/DdlUtils-1.0-dev.jar
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/ant/PreparedModel.java
    db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-data-new.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/lib/DdlUtils-1.0-dev.jar
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/lib/DdlUtils-1.0-dev.jar?rev=381450&r1=381449&r2=381450&view=diff
==============================================================================
Binary files - no diff available.

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/ant/PreparedModel.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/ant/PreparedModel.java?rev=381450&r1=381449&r2=381450&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/ant/PreparedModel.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/ant/PreparedModel.java
Mon Feb 27 13:18:19 2006
@@ -105,7 +105,13 @@
      */
     public DynaBean createBeanFor(String elementName)
     {
-        return _schema.createDynaBeanFor(getTableFor(elementName));
+        Table targetTable = getTableFor(elementName);
+
+        if (targetTable == null)
+        {
+            throw new IllegalArgumentException("No table defined for element "+elementName);
+        }
+        return _schema.createDynaBeanFor(targetTable);
     }
     
     public List getClassDescriptorsMappingTo(String elementName)

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-data-new.xml
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-data-new.xml?rev=381450&r1=381449&r2=381450&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-data-new.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/schema/ojbtest-data-new.xml Mon Feb 27 13:18:19 2006
@@ -203,8 +203,8 @@
     <CONTENT_QUALIFIER CONTENT_ID="11" QUALIFIER_ID="11"/>
     <CONTENT_QUALIFIER CONTENT_ID="11" QUALIFIER_ID="31"/>
 
-    <Ownable1 id="1"/>
-    <Ownable2 id="2"/>
-    <Owner id="1" ownedid="2"/>
-    <Owner id="2" ownedid="1"/>
+    <Ownable1Impl id="1"/>
+    <Ownable2Impl id="2"/>
+    <Owner id="1" ownedId="2"/>
+    <Owner id="2" ownedId="1"/>
 </dataset>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message