History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-75
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Vance Karimi
Reporter: Leandro Hermida
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

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

Created: 27/Jul/07 03:04 PM   Updated: 27/Jul/07 03:04 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
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

 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.