timestamp « Version « JPA Q&A





1. index on version or timestamp columns    forum.hibernate.org

2. Versioning / timestamp and Daylight savings?    forum.hibernate.org

I realized that after daylight savings took effect, every call to update an entry into my databaes created before day light savings took effect would result into a StaleObjectStateException. I also realized that the query that hit the database had two where clauses, one for unique id and one for the timestamp column beign equal to a value that was always ...

3. wrong version timestamp and StaleObjectException    forum.hibernate.org

Author Message drbeka Post subject: wrong version timestamp and StaleObjectException Posted: Mon Jan 19, 2004 7:28 am Newbie Joined: Tue Oct 28, 2003 8:00 am Posts: 16 Location: Karlsruhe, Germany hi, we use Interceptor to check changes of attributes in Interceptor.findDirty and have the following problem if we do our own checking of attribute changes: If we return null ...

4. Version and timestamp    forum.hibernate.org

Hi, I have a table I access with hibernate I need to do optimistic locking. The table already has a timestamp field which needs to be updated, although I read that timestamps are not the safe impl. of optimistic locking. So I though of inserting a new field and use hibernate version option to do the locking. but in this case ...

5. Timestamp versioning problem    forum.hibernate.org

... Timestamp changeTime; /** * @hibernate.timestamp column="change_time" */ public Timestamp getChangeTime() { return changeTime; } public void setChangeTime(Timestamp changeTime) { this.changeTime = changeTime; } ...

6. version timestamp is only to tenths of a second    forum.hibernate.org

I take that back. :) Disregard my last post, I thought when I had changed my object hierarchy something happened, but it didnt. When I debug, and stop at TimestampType.toString(), I see the timestamp has millis: 2004-08-21 17:14:30.685 However, in my DB trigger, I log the changes, and it is only getting a specificity of seconds: old( 08/21/2004 16:55:39:000000) = new ...

7. versioning (timestamp) problem    forum.hibernate.org

hi, we are experiencing a strange hibernate behaviour here is the mapping ----- cut here --------- NXTNBR

9. Timestamp versioning and generated columns via triggers.    forum.hibernate.org

Hello, I have some columns generated via db triggers, update_ts ( timestamp ) and create_ts ( timestamp ) and it looks that the db trigger won't populate the update_ts column at INSERT, so update_ts is NULL untill an update command is issued. "Update_ts" column is used for versioning in my hibernate mapping and it looks that even I have defined the ...





10. Version and Timestamp?    forum.hibernate.org

11. hibernate - timestamp versioning    forum.hibernate.org

12. Using both version and timestamp    forum.hibernate.org

Hibernate version: 3.2.1 Name and version of the database you are using: Oracle 10g R2 Hi, We're starting a new application from scratch and we'll be using hibernate 3.2.1 for persistence. The database design was done before this choice was made, so now, I'm trying to request changes to the design. The current design uses audit fields on every table. Those ...