November 30, 2013

One of the jpa issues I found in play 2 is the behaviour of the transaction handling. The default play @Transactional does some kind of magic commit. Lets have a look at the following controller action. @Transactional public static Result magicCommit(String name){ Task task = Task.findByName(name); task.name = “replacePlayTransactionalWithSomethingBetter”; return ok(); } The problem is

Read More

November 19, 2013

In my current play project we decided to use hibernate as JPA implementation. Here is the configuration we use: Dependencies in project/Build.scala val appDependencies = Seq( javaCore, javaJdbc, javaJpa, “org.hibernate” % “hibernate-entitymanager” % “4.2.7.Final” ) Database configuration in conf/application.conf # Database configuration # ~~~~~ db.default.driver=org.h2.Driver db.default.url=”jdbc:h2:file:data/db” db.default.user=sa db.default.password=”” db.default.jndiName=DefaultDS jpa.default=defaultPersistenceUnit Persistence unit in conf/META-INF/persistence.xml org.hibernate.ejb.HibernatePersistence

Read More

November 17, 2013

Everytime you start a new project, you should carefully think about the libraries and dependencies you going to use for your project. This prevents you from building on libraries which will be deprecated in the near future. In Play Framework 2.3 Ebean will be replaced with JPA. Here is a discussion in the forum about

Read More

September 24, 2013

Today I updated an application to Play Framework 2.2. After the creation of the IntelliJ config with “play idea”, I got errors in every reverse route and content call. Here are some examples how the errors locked like: After fiddling around a bit I found out that the routes_routing.scala and the routes_reverseRouting.scala had errors to.

Read More

July 20, 2013

I can’t remember when my inbox was empty the last time. It must been years ago. This means no open support requests. No todos which are not in the project management system. No appointments not scheduled in my calendar. No open ends to catch up. Awesome feeling! Hopefully I will see this screen more often

Read More