optimistic-locking
Hibernate: Should I include the 'version' field to hashcode() and equals() methods
I know that when overriding hashcode() and equals() of my persistent entities I should not include ID and only include the meaningful properties that uniquely identify the object.[详细]
2023-04-03 19:34 分类:问答Hibernate OptimisticLocking not working
I am using Hibernate 3.6.6 with Sping 3.0.4 After adding @org.hibernate.annotations.Entity(optimisticLock=OptimisticLockType.ALL, dynamicUpdate=true)[详细]
2023-03-30 14:04 分类:问答When to explicitly exclude Optimistic Locking (Hibernate)?
Under what circumstances would it be appropriate to explicitly exclude optimistic locking from a @OneToMany relationship via Hibernate?[详细]
2023-03-13 10:29 分类:问答Can I use optimistic locking of an object to guard its associations?
We\'re running into problems with a race condition in our rails app.Here\'s a bit of (simplified) code before I explain:[详细]
2023-03-05 03:27 分类:问答Hibernate and "greatest value wins" logic
I have a high_scores table in my database, it has two values: player_id highest_score I need a repository method that saves a new high score.I don\'t really want to dirty up my code with optimistic[详细]
2023-03-02 04:42 分类:问答table per client in database
We developing se开发者_如何学Pythonrvice were for each client user can make appointment. Is there strategy-table in database (MS SQL SERVER) for each client will be proper?[详细]
2023-02-27 17:47 分类:问答nHibernate and concurrency check
I want to achieve concurrency check using nHibernate 3 using UnitOfWork pattern. To be more precise: open new session session,[详细]
2023-02-20 03:05 分类:问答Basic question about optimistic lock (Hibernate)
I am new to use \"optimistic locking\" mechanism - I am using hibernate (in Jboss) and Container Managed Transaction (CMT).[详细]
2023-02-17 07:36 分类:问答openjpa throws optimisticklockexception
I am trying openjpa and jpa. All I have is one entity class as corresponding table in the database. one of the attributes of the entity is username and corresponding row in the db table has varchar2(2[详细]
2023-02-16 19:38 分类:问答simple design question about optimistic locking in spring/jpa/hibernate
Ihave an object GeneralKnowledgeTest and it contains a lot of statistics fields (ratingsCount, responsesCount, ra开发者_如何学JAVAtingStars ...) which are updated every time a user will take that test[详细]
2023-02-14 08:51 分类:问答