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

Modified Files:
        Column.jelly HibernateConfigPlugin.java 
        HibernateMappingPlugin.java Property.jelly 
Log Message:
(XDP-51) Added more tests for 'prefix' attribute

Index: Column.jelly
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate/Column.jelly,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Column.jelly        6 May 2005 07:24:41 -0000       1.6
--- Column.jelly        6 May 2005 08:09:40 -0000       1.7
***************
*** 1,5 ****
  <j:jelly xmlns:j="jelly:core">
      <column
!         name="${plugin.concat(componentTag.prefix, columnTag.name_)}"
          length="${columnTag.length}"
          precision="${columnTag.precision}"
--- 1,5 ----
  <j:jelly xmlns:j="jelly:core">
      <column
!         name="${plugin.buildComponentColumnName(componentTag.prefix, 
columnTag.name_)}"
          length="${columnTag.length}"
          precision="${columnTag.precision}"

Index: HibernateConfigPlugin.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate/HibernateConfigPlugin.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** HibernateConfigPlugin.java  26 Apr 2005 07:00:07 -0000      1.8
--- HibernateConfigPlugin.java  6 May 2005 08:09:40 -0000       1.9
***************
*** 30,34 ****
   * @author Inger
   * @author Konstantin Pribluda
-  * @version $Revision$
   */
  public class HibernateConfigPlugin extends AbstractHibernatePlugin {
--- 30,33 ----

Index: HibernateMappingPlugin.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate/HibernateMappingPlugin.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** HibernateMappingPlugin.java 6 May 2005 07:24:41 -0000       1.34
--- HibernateMappingPlugin.java 6 May 2005 08:09:41 -0000       1.35
***************
*** 25,29 ****
   *
   * @author Konstantin Pribluda
!  * @version $Revision$
   */
  public class HibernateMappingPlugin extends AbstractHibernatePlugin {
--- 25,29 ----
   *
   * @author Konstantin Pribluda
!  * @author Anatol Pomozov
   */
  public class HibernateMappingPlugin extends AbstractHibernatePlugin {
***************
*** 253,266 ****
      }
  
!     public String concat(String string1, String string2) {
!         if (string1 == null) {
!             return string2;
          }
  
!         if (string2 == null) {
!             return string1;
          }
  
!         return string1 + string2;
      }
  
--- 253,267 ----
      }
  
!     public String buildComponentColumnName(String prefix, String columnName) {
!         if (prefix == null) {
!             return columnName;
          }
  
!         //If columnName is null then we do not need add prefix
!         if (columnName == null) {
!             return null;
          }
  
!         return prefix + columnName;
      }
  

Index: Property.jelly
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/main/java/org/xdoclet/plugin/hibernate/Property.jelly,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Property.jelly      6 May 2005 07:24:42 -0000       1.8
--- Property.jelly      6 May 2005 08:09:41 -0000       1.9
***************
*** 7,11 ****
              access="${property.access}"
              type="${propertyTag.type}"
!             column="${plugin.concat(componentTag.prefix, propertyTag.column)}"
              length="${propertyTag.length}"
              precision="${propertyTag.precision}"
--- 7,11 ----
              access="${property.access}"
              type="${propertyTag.type}"
!             column="${plugin.buildComponentColumnName(componentTag.prefix, 
propertyTag.column)}"
              length="${propertyTag.length}"
              precision="${propertyTag.precision}"



-------------------------------------------------------
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