[forge-dev] Add means of defining constraint for Length on String
George Gastaldi
gegastaldi at icloud.com
Fri Dec 28 19:47:11 EST 2012
Change the value in your @Column annotation. Thats JPA Standard.
George Gastaldi
Em 28/12/2012, às 20:17, Robb Greathouse <robb.greathouse at jboss.com> escreveu:
> Hi,
>
> Was trying to change the length on String from the VarChar(255). In Hibernate this can be done by specifying @Length(max=350) (for example.
>
> However, there is no "constraint Length --onProperty xxx --max 350" available in Forge.
>
> Using "constraint Max" causes forge to have a conversion error when attempting to insert string data.
>
> Robb Greathouse
> Partner Enablement
> Middleware Business Unit
> JBoss, a Division of Red Hat
> cellphone 505-507-4906
>
More information about the forge-dev
mailing list