I've actually just changed my demo. I'm using Amazon web services to parse Java EE 7 books and the description of a book can be quite long (>250 chars), so I've just trimmed it to 255. So that's fine for me. It's an interesting feature to have that might disappear in Java EE 8 (@Size (max=2000) hopefully will be interpreted by JPA). But in the meantime, a --length field would help... but it can wait till Forge 2 (can't wait to start using it ;o)

See you at J1


2013/9/13 Lincoln Baxter, III <lincolnbaxter@gmail.com>
Hey Antonio. We are actually feature locked, as George mentioned, for Forge 1, but... give you are presenting Forge at J1, we might be able to spend a little time on this for you. Let me have someone look and see how much effort this would take. No promises yet.

How much do you need this?


On Fri, Sep 13, 2013 at 11:19 AM, George Gastaldi <ggastald@redhat.com> wrote:
Apparently there wasn't a JIRA for this.

Robb, I don't have this information that it was planned in the roadmap, do you have any information about the version that it should have been fixed? 

On 09/13/2013 12:13 PM, Robb Greathouse wrote:
I was told that it was on the roadmap and was going to be added.  Don't know if it happened.


Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906


Hi all,

I am trying to do exactly the same : generate an entity with a @Column (length=2000). Looks like it is still not possible. Am I right ? If I do :

field string --named title ;
constraint Size --onProperty title --max 2000

I get : 

@Column
@Size(max = 2000)
private String title;

Even in Java EE 7, the integration between JPA and Bean Validation hasn't been made. So this doesn't work (i.e. create a column in the DB with 2000 char long). What I would need is :

@Column(length = 2000)
@Size(max = 2000)
private String title;

Looks like it's not doable, but I might be wrong.

Thanks





2012/12/29 George Gastaldi <gegastaldi@icloud.com>
Change the value in your @Column annotation. Thats JPA Standard.

George Gastaldi

Em 28/12/2012, ās 20:17, Robb Greathouse <robb.greathouse@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
>

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev



--
Antonio Goncalves 
Software architect and Java Champion

Web site | Twitter | LinkedIn | Paris JUG | Devoxx France



_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev


_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev



--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev



--
Antonio Goncalves 
Software architect and Java Champion

Web site | Twitter | LinkedIn | Paris JUG | Devoxx France