Forums Register Login

Increase text filed size useing Annotations in ejb3.0

+Pie Number of slices to send: Send
I have implemented abstraction layer.
@Entity
@Table(name = "teamwikis")
public class TeamWiki implements Serializable {
/** The text of the TeamWiki */
private String wikiText;
/**
* @return the wikiText
*/
@NotNull
@Length
@Max
public String getWikiText() {
return wikiText;
}

/**
* @param wikiText
* the wikiText to set
*/
public void setWikiText(String wikiText) {
this.wikiText = wikiText;
}
}


see above code.
i want to increasing field size max 2000 for text. but can not increasing max size even using @Length or @Max also.it is access upto 255 char only(it is String).

Please give me solution how to increasing size for text field.

Thanks
Seshagiri
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 681 times.
Similar Threads
Trimming a blank String
Need to limit the text
"hibernate.hbm2ddl.auto">create - to generate DB Tables
making a class visible
Reg. Validatin JTextFields
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:06:14.