[ROO-3571] Creating a field with max and min limitation generate invalid code into Jspx Created: 16/Dec/14  Updated: 29/Apr/15  Resolved: 29/Apr/15

Status: Resolved
Project: Spring Roo
Component/s: WEB MVC
Affects Version/s: 1.2.5.RELEASE, 1.3.0.RELEASE, 1.3.1.RC1
Fix Version/s: 2.0.0.M1

Type: Improvement Priority: Minor
Reporter: Mario Martínez Sánchez - gvNIX - DISID Assignee: Juan Carlos García del Canto
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 12.04, Java 1.6.0_45, Maven 3.0.5, Roo 1.3.0.RELEASE



 Description   

Run next script:

project --topLevelPackage com.test
persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT
entity jpa --class es.kk.domain.MyEntity
field number --fieldName myNumber --type java.lang.Integer --max 31 --min 1
web mvc setup
web mvc all --package ~.web

Creating a field and limiting their maximum and minimum value:

field number --fieldName myNumber --type java.math.BigDecimal --max 31 --min 1

The entity Java class includes the limitation correctly with @Max and @Min annotations.

However the jspx view takes these values as maximum and minimum size and also performs no validation with them into Tagx.


Generated at Mon Aug 03 12:55:11 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.