Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created February 23, 2011 23:03
Show Gist options
  • Select an option

  • Save wfaler/841391 to your computer and use it in GitHub Desktop.

Select an option

Save wfaler/841391 to your computer and use it in GitHub Desktop.
BowlerJpa.scala
import com.recursivity.jpa.Jpa._
// gets an EntityManager for the default persistence-unit we set in the PersistenceUnit.unitName
val em = entityManager
//..or:
// to retrieved a specific named persistence-unit defined in your persistence.xml
val em = entityManager("someOtherPersistenceUnit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment