T
the Rat
All,
I have a CMP 2.0 Entity bean that represents a row in a table of my DB.
I've got numerous abstract setters and getters. However, one of the
columns in my DB is a timestamp and I want it to reflect the time -
ACCORDING TO THE DB - when that row was updated. Without using an CMP
2.0 entity bean I'd simply do something like this:
update customer set lastHeartBeat=sysdate where id=55;
The value of sysdate has special meaning to oracle - it's the current
system time. How does one deal with time issues using CMPs? It looks
like EJB-QL is really just for generating quieries in a DB-independent
way and doesn't deal with "date" or "timestamp" issues directly. Am I
wrong about this?
Any light you can shed would be appreciated.
-john
I have a CMP 2.0 Entity bean that represents a row in a table of my DB.
I've got numerous abstract setters and getters. However, one of the
columns in my DB is a timestamp and I want it to reflect the time -
ACCORDING TO THE DB - when that row was updated. Without using an CMP
2.0 entity bean I'd simply do something like this:
update customer set lastHeartBeat=sysdate where id=55;
The value of sysdate has special meaning to oracle - it's the current
system time. How does one deal with time issues using CMPs? It looks
like EJB-QL is really just for generating quieries in a DB-independent
way and doesn't deal with "date" or "timestamp" issues directly. Am I
wrong about this?
Any light you can shed would be appreciated.
-john