Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Increase text filed size  useing Annotations in ejb3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Increase text filed size  useing Annotations in ejb3.0" Watch "Increase text filed size  useing Annotations in ejb3.0" New topic
Author

Increase text filed size useing Annotations in ejb3.0

seshagiri veerla
Greenhorn

Joined: Mar 15, 2008
Posts: 16
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Increase text filed size useing Annotations in ejb3.0
 
Similar Threads
Need to limit the text
making a class visible
Trimming a blank String
Reg. Validatin JTextFields
"hibernate.hbm2ddl.auto">create - to generate DB Tables