Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Increase text filed size useing Annotations in ejb3.0

 
seshagiri veerla
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic