Hi,
I have a EntityBean having one of the persistent fields as
java.sql.Timestamp object.
    public String Status;
    public java.sql.Timestamp TimeStamp;

When I call the create method, the TimeStamp gets initialized and it is reflected in 
the underlying storage database.

The EB exposes a method to update the TimeStamp also:
     public void UpdateTimestamp(java.sql.Timestamp timestamp)
     {
         System.out.println("I am going to update it now: " + timestamp);
         this.TimeStamp = timestamp;
         System.out.println("Updated: " + this.TimeStamp);
     }


But whenever this Update method is called, the database doesn't get the new Timestamp.

Could this be because the java.sql.Timestamp is being passed by value only
and the client is changing only the local copy of the field, not the
original field in the EB.

Do please let me know your views?? How do I do the update on the field in
similar cases?

Regards
Mohit

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to