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

Modified Files:
        ComponentMapping.hbm.xml ComponentMapping.java 
        CompositeMapKeyMapping.java CompositeMapping.java Simple.java 
Log Message:
(XDP-81) Added support of component prefixies to many-to-one relationship 
columns

Index: Simple.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Simple.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Simple.java 4 Jul 2005 12:34:15 -0000       1.23
--- Simple.java 25 Jul 2005 16:02:53 -0000      1.24
***************
*** 25,28 ****
--- 25,29 ----
      private Object _fullBlown;
      private String _name;
+ 
      /**
       * property defined on field level

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.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ComponentMapping.java       4 Jul 2005 12:34:15 -0000       1.14
--- ComponentMapping.java       25 Jul 2005 16:02:53 -0000      1.15
***************
*** 18,31 ****
       */
      public AnotherClass classComponent;
- 
      /**
       * @hibernate.component
       */
      public Simple field;
- 
      /**
       * @hibernate.id generator-class="native"
       */
      private Long id;
  
      /**
--- 18,33 ----
       */
      public AnotherClass classComponent;
      /**
       * @hibernate.component
       */
      public Simple field;
      /**
       * @hibernate.id generator-class="native"
       */
      private Long id;
+     /**
+      * @hibernate.component prefix="xpref_"
+      */
+     private WithManyToOne withManyToOne;
  
      /**
***************
*** 56,60 ****
           * @hibernate.column name="one"
           */
!         String stringField;
      }
  
--- 58,62 ----
           * @hibernate.column name="one"
           */
!         private String stringField;
      }
  
***************
*** 63,76 ****
           * @hibernate.parent
           */
!         ComponentMapping xyz;
! 
          /**
           * @hibernate.property column="col" access="field"
           */
!         String foo;
          /**
           * @hibernate.component prefix="nested_"
           */
!         Nested nested;
      }
  
--- 65,78 ----
           * @hibernate.parent
           */
!         private ComponentMapping xyz;
          /**
           * @hibernate.property column="col" access="field"
           */
!         private String foo;
! 
          /**
           * @hibernate.component prefix="nested_"
           */
!         private Nested nested;
      }
  
***************
*** 79,83 ****
           * @hibernate.property
           */
!         String field;
      }
  
--- 81,85 ----
           * @hibernate.property
           */
!         private String field;
      }
  
***************
*** 86,90 ****
           * @hibernate.property column="col"
           */
!         String go;
      }
  }
\ No newline at end of file
--- 88,99 ----
           * @hibernate.property column="col"
           */
!         private String go;
!     }
! 
!     public class WithManyToOne {
!         /**
!          * @hibernate.many-to-one column="refcol"
!          */
!         private Nested nested;
      }
  }
\ No newline at end of file

Index: CompositeMapKeyMapping.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/CompositeMapKeyMapping.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** CompositeMapKeyMapping.java 4 Jul 2005 12:34:15 -0000       1.4
--- CompositeMapKeyMapping.java 25 Jul 2005 16:02:53 -0000      1.5
***************
*** 25,33 ****
           */
          private Long keyField;
          /**
           * @hibernate.key-property
           */
          private Long keySN;
- 
          /**
           * @hibernate.key-many-to-one
--- 25,33 ----
           */
          private Long keyField;
+ 
          /**
           * @hibernate.key-property
           */
          private Long keySN;
          /**
           * @hibernate.key-many-to-one

Index: CompositeMapping.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/CompositeMapping.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** CompositeMapping.java       4 Jul 2005 12:34:15 -0000       1.4
--- CompositeMapping.java       25 Jul 2005 16:02:53 -0000      1.5
***************
*** 22,25 ****
--- 22,26 ----
       */
      private List emailAddresses;
+ 
      /**
       * @hibernate.list
***************
*** 29,37 ****
       */
      private List permissions;
      /**
       * @hibernate.id generator-class="native"
       */
      private Long userName;
- 
      /**
       * @hibernate.map
--- 30,38 ----
       */
      private List permissions;
+ 
      /**
       * @hibernate.id generator-class="native"
       */
      private Long userName;
      /**
       * @hibernate.map
***************
*** 57,60 ****
--- 58,62 ----
           */
          private Date parent;
+ 
          /**
           * @hibernate.property column="permissionType"

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.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ComponentMapping.hbm.xml    4 Jul 2005 12:34:15 -0000       1.11
--- ComponentMapping.hbm.xml    25 Jul 2005 16:02:53 -0000      1.12
***************
*** 36,39 ****
--- 36,42 ----
              </component>
          </component>
+         <component name="withManyToOne">
+             <many-to-one name="nested" column="xpref_refcol"/>
+         </component>
      </class>
  </hibernate-mapping>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to