1. Hades,Hibernate and JUnit: Persistence not happening after transaction stackoverflow.comI have a JUnit test that needs to update a column of an existing row before further operations are performed and validated based on that column. But my problem is that ... |
2. Junit test for method with row locking - any advice? forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1.3, Java: 1.4 I've added row locking to a method to prevent two users updating the same row at the same time by adding UPGRADE_NOWAIT to the get before the save. Code: public void saveBatch(final Batch batch) throws FunctionalException, SystemException { if (batch.getBatchId() != null) { ... |