Tag Archives: play framework
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
Play Framework 2.0 – Premières impressions
Cet article à été publié sur le blog de Clever Age. Vous pouvez le retrouver à cette adresse. Tweet
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