Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. [RuntimeException: No JPA entity manager defined for 'default']
  2.  
  3. play {
  4. modules {
  5. enabled += "play.api.db.DBModule"
  6. enabled += "play.api.db.HikariCPModule"
  7. enabled += "play.db.jpa.JPAModule"
  8. }
  9. # Database configuration
  10. db {
  11. default = "default"
  12. prototype = {
  13. pool = "hikaricp"
  14. url = "jdbc:postgresql://localhost:5432/playdb"
  15. username = postgres
  16. password = "######"
  17. jndiName = DefaultDS
  18. jpaUnit = defaultPersistenceUnit
  19.  
  20. # HikariCP configuration options
  21. hikaricp {
  22. dataSourceClassName = org.postgresql.ds.PGSimpleDataSource
  23. autoCommit = true
  24. connectionTimeout = 30 seconds
  25. idleTimeout = 10 minutes
  26. maxLifetime = 30 minutes
  27. connectionTestQuery = "SELECT 1"
  28. minimumIdle = null
  29. maximumPoolSize = 10
  30. poolName = null
  31. initializationFailFast = true
  32. isolateInternalQueries = false
  33. allowPoolSuspension = false
  34. readOnly = false
  35. registerMbeans = false
  36. catalog = null
  37. connectionInitSql = null
  38. transactionIsolation = null
  39. validationTimeout = 5 seconds
  40. leakDetectionThreshold = null
  41. }
  42. }
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement