User: pazu    
  Date: 02/06/25 07:16:15

  Modified:    modules/ejb/src/xdoclet/modules/ejb/entity
                        ValueObjectTagsHandler.java
  Log:
  Uses the VO class pattern even when the name is not specified.
  This closes bug #570801. Please see
  
  
https://sourceforge.net/tracker/index.php?func=detail&aid=570801&group_id=31602&atid=402704
  
  for bug details and comments.
  
  Revision  Changes    Path
  1.8       +3 -7      
xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/ValueObjectTagsHandler.java
  
  Index: ValueObjectTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/ValueObjectTagsHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -w -r1.7 -r1.8
  --- ValueObjectTagsHandler.java       19 Jun 2002 20:28:20 -0000      1.7
  +++ ValueObjectTagsHandler.java       25 Jun 2002 14:16:15 -0000      1.8
  @@ -31,7 +31,7 @@
    * @author               Vincent Harcq ([EMAIL PROTECTED])
    * @created              13. juni 2002
    * @xdoclet.taghandler   namespace="EjbValueObj"
  - * @version              $Revision: 1.7 $
  + * @version              $Revision: 1.8 $
    */
   public class ValueObjectTagsHandler
        extends EjbTagsHandler
  @@ -138,12 +138,8 @@
   
           String _currentValueObjectClass;
   
  -        if (name == null) {
  -            _currentValueObjectClass = getShortEjbNameFor(clazz) + "Value";
  -        }
  -        else {
  -            _currentValueObjectClass = 
MessageFormat.format(getSubTask().getValueObjectClassPattern(), new Object[]{name});
  -        }
  +        _currentValueObjectClass = 
MessageFormat.format(getSubTask().getValueObjectClassPattern(),
  +            new Object[]{(name != null) ? name : getShortEjbNameFor(clazz)});
   
           String packageName = clazz.getContainingPackage().getName();
   
  
  
  


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to