[forge-issues] [JBoss JIRA] (FORGE-1200) Add A at Column(length) on Entity attributes of type String
Antonio Goncalves (JIRA)
jira-events at lists.jboss.org
Fri Sep 13 11:16:04 EDT 2013
Antonio Goncalves created FORGE-1200:
----------------------------------------
Summary: Add A at 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
Affects Versions: 2.x Future
Reporter: Antonio Goncalves
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
More information about the forge-issues
mailing list