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-serv20606/src/test/java/org/xdoclet/plugin/hibernate/pojo

Modified Files:
        ComponentMapping.hbm.xml ComponentMapping.java 
Log Message:
(XDP-51) Added support of 'prefix' attribute for component

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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ComponentMapping.java       26 Apr 2005 07:00:17 -0000      1.3
--- ComponentMapping.java       6 May 2005 07:24:42 -0000       1.4
***************
*** 25,31 ****
      }
  
      public class Simple {
          /**
!          * @hibernate.property
           */
          String foo;
--- 25,38 ----
      }
  
+     /**
+      * @hibernate.component class="foo.bar.Baz" prefix="prfx_"
+      */
+     Simple getPrefixedComponent() {
+         return field;
+     }
+ 
      public class Simple {
          /**
!          * @hibernate.property column="col"
           */
          String foo;

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.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ComponentMapping.hbm.xml    26 Apr 2005 07:00:17 -0000      1.3
--- ComponentMapping.hbm.xml    6 May 2005 07:24:42 -0000       1.4
***************
*** 6,13 ****
              <meta inherit="true" attribute="blurge">bang</meta>
              <parent name="blam"/>
!             <property name="foo" access="field"/>
          </component>
          <component access="field" name="field">
!             <property name="foo" access="field"/>
          </component>
      </class>
--- 6,16 ----
              <meta inherit="true" attribute="blurge">bang</meta>
              <parent name="blam"/>
!             <property name="foo" access="field" column="col"/>
!         </component>
!         <component name="prefixedComponent" class="foo.bar.Baz">
!             <property name="foo" column="prfx_col" access="field"/>
          </component>
          <component access="field" name="field">
!             <property name="foo" access="field" column="col"/>
          </component>
      </class>



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to