[
https://issues.jboss.org/browse/FORGE-1200?page=com.atlassian.jira.plugin...
]
George Gastaldi closed FORGE-1200.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 1.4.1.Final
2.0.0.Alpha13
(was: 2.x Future)
Resolution: Done
Fixed
Add A@Column(length) on Entity attributes of type String
---------------------------------------------------------
Key: FORGE-1200
URL:
https://issues.jboss.org/browse/FORGE-1200
Project: Forge
Issue Type: Feature Request
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Fix For: 1.4.1.Final, 2.0.0.Alpha13
It would be good to be able to set the length of a string on an entity. If you do :
{code}
field string --named title ;
constraint Size --onProperty title --max 2000
{code}
You will get :
{code}
@Column
@Size(max = 2000)
private String title;
{code}
Even in Java EE 7, the integration between JPA and Bean Validation hasn't been made.
So this doesn't create a column in the DB with 2000 char long. What you would need is
:
{code}
@Column(length = 2000)
@Size(max = 2000)
private String title;
{code}
It would be good to have extra length parameter, something like :
{code}
field string --named title --length 2000;
{code}
See :
http://lists.jboss.org/pipermail/forge-dev/2012-December/002878.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira