Tag Archives: Ebean

Ebean and the OptimisticLockException

I encountered today a strange Exception with PlayFramework 2.0 / Ebean when updating an entity: javax.persistence.OptimisticLockException: Data has changed. updated [0] rows At first sight, this exception is quite cryptic and it took me some time to understand why it … Continue reading

Développement web , , ,

Unit testing tricks for Play 2.0 and Ebean

Basic Ebean model testing When you want to execute some tests that interact with your Models, you need to use a Play FakeApplication. This is described in the Java section of the Play 2.0 documentation. Here is how the code … Continue reading

Développement web , , , ,