OPEN - issue BATCH-170: Concurrent modification of StepExecution when running an asynchrounous step operation

http://opensource.atlassian.com/projects/spring/browse/BATCH-170

Fix broken tests.
This commit is contained in:
dsyer
2007-12-19 13:48:29 +00:00
parent 37696b45f4
commit 17d3397594
5 changed files with 53 additions and 388 deletions

View File

@@ -34,12 +34,12 @@ public class Entity implements Serializable {
private Long id;
private Integer version = new Integer(0);
private Integer version;
public Entity() {
super();
}
public Entity(Long id) {
super();
this.id = id;
@@ -59,12 +59,16 @@ public class Entity implements Serializable {
public Integer getVersion() {
return version;
}
/**
*
*/
public void incrementVersion() {
version = new Integer(version.intValue()+1);
if (version == null) {
version = new Integer(0);
} else {
version = new Integer(version.intValue() + 1);
}
}
// @Override