Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity
In directory 
sc8-pr-cvs1:/tmp/cvs-serv10457/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity

Modified Files:
        CmpTagsHandler.java 
Log Message:
Made the table-name and column-name attributes of the @ejb.persistence tags optional. 
If these attributes are not specified, XDoclet will use the method's property name or 
the class name respectively.

This is related to XDT-9

Index: CmpTagsHandler.java
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/CmpTagsHandler.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** CmpTagsHandler.java 28 Jan 2003 10:18:50 -0000      1.11
--- CmpTagsHandler.java 28 Jan 2003 12:28:41 -0000      1.12
***************
*** 343,345 ****
--- 343,356 ----
      }
  
+     public void ifIsPersistent(String template) throws XDocletException
+     {
+         boolean persistent = getCurrentClass().getMethodTags("ejb.persistence", 
+true).size() != 0;
+ 
+         persistent = persistent || 
+getCurrentClass().getMethodTags("jboss.table-name", true).size() != 0;
+         persistent = persistent || 
+getCurrentClass().getMethodTags("weblogic.table-name", true).size() != 0;
+ 
+         if (persistent) {
+             generate(template);
+         }
+     }
  }



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to