appoxy/simplejpa — pull request #18 by aldrinleal (2012-01-09 13:11:03+00:00)
Title: Optimistic Locking via @Version and Conditional Put

Whis patch implements @Version on Integer fields.

For Instance, on Customer class:

```
private Integer revision = Integer.valueOf(0);

@Version
public Integer getRevision() {
return revision;
}

public void setRevision(Integer revision) {
this.revision = revision;
}
```

When the persist gets called, the revision gets bumped and the conditional put is made. The AWS api is likely to throw an exception - which have yet to get mapped to an exception.