# Copyright (C) Lightbend Inc. <https://www.lightbend.com>

play {
  modules {
    enabled += "play.db.jpa.JPAModule"
  }

  jpa {
    # The name of the configuration item from which to read JPA config.
    # So, if set to "jpa", means that "jpa.default" is where the configuration
    # for the database named "default" is found.
    config = "jpa"

    # Defines whether the JPA entity manager context thread local is allowed
    # You can set this to false if you don't use APIs anymore that rely on the JPA entity manager context.
    allowJPAEntityManagerContext = true
  }
}