Automatic « Version « JPA Q&A





1. Hibernate: Automatic Versioning Nullable Column    stackoverflow.com

Hi I have a table which contains huge data. I want to add hibernate automatic versioning to this table. But adding a not-null column to this table for versioning is very ...

2. Disable automatic versioning in Hibernate JPA provider?    stackoverflow.com

We are in a middle of an migration process of converting EJB2.1 entity beans to EJB3 we have chosen Hibernate as JPA 1.0 provider in Weblogic. We would like to disable ...

3. Hibernate Automatic Versioning    stackoverflow.com

I have developed customer maintain application . Users can alter the customer details via web interface. I want to handle following scenario.

1. User1 load customer1 details.
2. User2 load customer1 details.
3. ...

4. Hibernate Automatic Versioning    coderanch.com

The documentation seems to me to be quite sparse when talking about automatic versioning of persistent objects. Can anyone describe for me what actually goes on when you choose to use this technique to manage Optimistic locking. How does the application become aware that the row has changed underneath it. Where do the Transaction methods come into play. Wayne

5. Why automatic versioning not work?    forum.hibernate.org

Newbie Joined: Sat May 15, 2004 5:24 am Posts: 2 Hi. I have a problem about automatic versioning with hibernate(2.1.3). When i execute ProductDAO.updateProduct() method, automatic versioning works well. But in ProductDAO.updateTest() method, automatic version can't work. Why? Sorry for my poor english. Thanx. Code: public class Product { private Integer id; private ...

6. Automatic Versioning Problems w/ type Calendar    forum.hibernate.org

Author Message ryalbe Post subject: Automatic Versioning Problems w/ type Calendar Posted: Tue Mar 01, 2005 1:45 pm Newbie Joined: Thu Feb 17, 2005 10:27 am Posts: 8 Ok, here's the problem: I am trying to set up automatic versioning for a Last Updated calendar field. I created the version tag immediately following the ID tag and specified the ...

7. Automatic versioning    forum.hibernate.org

Question on Automatic versioning - During my testing it appears that Hibernate 3.05 updates the version number of any object that is 'saved' in a session. What is odd, is hibernate appears to update the version number of ALL objects in the session regardless of whether the object changed or not. Test: Create object A -> save -> A version # ...

8. is automatic version column indexed?    forum.hibernate.org

An Authorization is used to record the authorization state for ...

9. Unexpected update with automatic versioning    forum.hibernate.org

Hibernate version: 3.1 Mapping documents: Code: ...





10. how to make automatic version check work in CMT/SLSB    forum.hibernate.org

i use Hibernate with CMT. i have a method on a stateless session bean which uses a DAO to retrieve an entity by id and updates it. The DAO uses sessionFactory.getCurrentSession(). Apparently, automatic version check doesnot work because the entity is not detached but reloaded in every session per thread. Is there a way to avoid manual version check and make ...

11. How does the automatic versioning work behind the scenes?    forum.hibernate.org

I know that Hibernate does not create a new column in the database that it uses for storing the version number. So how does it keep track of which objects are changed and which are not? Are there some hiden properties (in classes) and columns or tables (in database)? What does it compare on the persistent/transistent object and on the data ...

12. automatic versioning    forum.hibernate.org

Ok, this is an extremely trivial question in my opinion, but I searched long and hard and was surprised not to find a clear answer in the documentation or in the forums. Here it goes: "When using Detached objects and automatic versioning (cfr Paragraph 11.3.3 in Reference), do you have to explicitly declare a version-tag in your mapping-configuration and therefor also ...