database « Version « JPA Q&A





1. How to set version timestamp with sysdate from database    forum.hibernate.org

Hi Thierry! tahcow wrote: how could i set the lastMod column on insert and update with the time of my database server instead of the time of my appserver. I don't think it is a good idea to set version timestamp manually. As I got version is a utility field that is needed for optimistic locking and updating objects with composite-id. ...

2. version and legacy database    forum.hibernate.org

I have use hibernate version features without change legacy database Is it possible set version in another table.For instance : Table A ID - primary key properties Version table A_version ID (primary key same table A) version long Tables A and A_version have one-to-one mapping and ID can be composite ID. When load object from table A, hibernate load version from ...

3. How to access multiple versions of Databases    forum.hibernate.org

[b]Hibernate version:[/b] 3.1.2 Hi all, I am trying to manage multiple databases in the same DB server. the DB Server is exposed on a URL/port. I have an active and a standby node. Both the nodes normally are in the same version and they access DB using hte above URL. But, after an upgrade is done on the standby node, the ...

4. version and legacy database    forum.hibernate.org

Hi, I have a specific case and I'd like to know if a feature exist in Hibernate to make it work: I want to connect to a legacy database that has an update_date column in each of its tables. I'd like to use optimistic locking with the version attribute mapped to these columns in my hibernate mapping files, but hibernate shouldn't ...

5. Problem with version column generated by database    forum.hibernate.org

Newbie Joined: Thu Apr 27, 2006 5:51 am Posts: 5 Hi all, we were working for quite some time with hibernate 3.1.0 using version columns with values generated by a database trigger for optimistic locking. Due to Bug HHH-1750 we have to update to a newer Version of hibernate (i.e. 3.2.2). Now all updates are failing with StaleObjectStateExceptions. I did some ...