@org.hibernate.validator.Length annotation min and max setting does not work 
for EJB3 + Seam
--------------------------------------------------------------------------------------------

         Key: EJB-75
         URL: http://jira.andromda.org/browse/EJB-75
     Project: EJB Cartridge
        Type: Bug

    Reporter: Leandro Hermida
 Assigned to: Vance Karimi 


Hello,

As described in http://galaxy.andromda.org/forum/viewtopic.php?t=2547 setting 
@andromda.persistence.column.length = x,y does not properly set the 
@org.hibernate.validator.Length(min = x, max = y) annotation.  When looking at 
EntityEmbeddable.vsl one can see that it is not yet implemented:

#*        *##if ($attribute.columnLength)
    @org.hibernate.validator.Length(max = $attribute.columnLength)
#*        *##end

and you get

@org.hibernate.validator.Length(max = 5,15)

which doesn't compile.

I looked through the Velocity Template Language docs and couldn't find any way 
of splitting a string to separate x and y from the $attribute.columnLength 
variable.  If someone knows then the fix would be easy.

-Leandro

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Reply via email to