[jboss-user] [JBoss Seam] - Re: inputText / empty string versus NULL
trickyvail
do-not-reply at jboss.com
Thu Sep 13 11:38:05 EDT 2007
I'm not certain this will work but please try and post results.
Inside your entity bean change the setter method for the field you want to be null to something like this:
public void setField(String field)
| {
| if("".equals(field))
| {
| this.field = null;
| }
| else
| {
| this.field = field;
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084017#4084017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084017
More information about the jboss-user
mailing list