Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11429/src/test/java/org/xdoclet/plugin/hibernate/pojo

Modified Files:
        ComponentMapping.hbm.xml ComponentMapping.java 
Log Message:
(XDP-65) Added support of nested components

Index: ComponentMapping.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/ComponentMapping.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ComponentMapping.java       30 May 2005 14:03:19 -0000      1.10
--- ComponentMapping.java       1 Jun 2005 14:52:57 -0000       1.11
***************
*** 18,25 ****
--- 18,27 ----
       */
      public AnotherClass classComponent;
+ 
      /**
       * @hibernate.component
       */
      public Simple field;
+ 
      /**
       * @hibernate.id generator-class="native"
***************
*** 62,69 ****
--- 64,83 ----
           */
          ComponentMapping xyz;
+ 
          /**
           * @hibernate.property column="col"
           */
          String foo;
+         /**
+          * @hibernate.component prefix="nested_"
+          */
+         Nested nested;
+     }
+ 
+     public class Nested {
+         /**
+          * @hibernate.property column="col"
+          */
+         String go;
      }
  }
\ No newline at end of file

Index: ComponentMapping.hbm.xml
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/ComponentMapping.hbm.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ComponentMapping.hbm.xml    30 May 2005 14:03:19 -0000      1.8
--- ComponentMapping.hbm.xml    1 Jun 2005 14:52:57 -0000       1.9
***************
*** 4,8 ****
      <class name="org.xdoclet.plugin.hibernate.pojo.ComponentMapping" 
table="component-table">
          <id access="field" name="id">
!           <generator class="native"/>
          </id>
          <component name="component" insert="true" class="foo.bar.Baz" 
update="false">
--- 4,8 ----
      <class name="org.xdoclet.plugin.hibernate.pojo.ComponentMapping" 
table="component-table">
          <id access="field" name="id">
!             <generator class="native"/>
          </id>
          <component name="component" insert="true" class="foo.bar.Baz" 
update="false">
***************
*** 10,17 ****
--- 10,23 ----
              <parent name="xyz"/>
              <property name="foo" access="field" column="col"/>
+             <component name="nested" access="field">
+                 <property name="go" access="field" column="nested_col"/>
+             </component>
          </component>
          <component name="prefixedComponent" class="foo.bar.Baz">
              <parent name="xyz"/>
              <property name="foo" column="prfx_col" access="field"/>
+             <component name="nested" access="field">
+                 <property name="go" access="field" column="prfx_nested_col"/>
+             </component>
          </component>
          <property name="removedDttm" column="removed_dttm" not-null="true"/>
***************
*** 24,27 ****
--- 30,36 ----
              <parent name="xyz"/>
              <property name="foo" access="field" column="col"/>
+             <component name="nested" access="field">
+                 <property name="go" access="field" column="nested_col"/>
+             </component>
          </component>
      </class>



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to