Not quite sure what you mean by helper method, but I would do something like
this:
public void setDate(Date date)
{
// check that the date is not a sunday and is not a holiday
setDateField(date);
}
public abstract void setDateField(Date date);
public abstract Date getDateField();
that way you never actually set the 'wrong' value.
hth
dim
----- Original Message -----
From: "Jon Swinth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 9:16 AM
Subject: [JBoss-user] Strange CMP2 problem in JBoss3.0.0
> Hi all,
>
> I have a CMP2 been in which I have created a helper method adjust the
value
> of a date column. Basically, I have a date column which is updated by the
> client. The client then calls the helper method which makes sure the
> selected date is not on a Sunday and checks other beans to make sure it is
> not on a holiday. It then calls the set method with the updated date.
The
> bean is ignoring the value from the helper method and keeping the value
from
> the original client call in the same transaction. This is very odd.
Looking
> at the log reveals nothing. What is more interesting is that the helperm
> ethod works fine in other instances where the set method is not called
prior
> to the helper.
>
> I have checked the forums, mail list archive, and outstanding bugs to see
if
> this has come up before.
>
> Any ideas are welcome.
>
> Jon
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user