Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [RuntimeException: No JPA entity manager defined for 'default']
- play {
- modules {
- enabled += "play.api.db.DBModule"
- enabled += "play.api.db.HikariCPModule"
- enabled += "play.db.jpa.JPAModule"
- }
- # Database configuration
- db {
- default = "default"
- prototype = {
- pool = "hikaricp"
- url = "jdbc:postgresql://localhost:5432/playdb"
- username = postgres
- password = "######"
- jndiName = DefaultDS
- jpaUnit = defaultPersistenceUnit
- # HikariCP configuration options
- hikaricp {
- dataSourceClassName = org.postgresql.ds.PGSimpleDataSource
- autoCommit = true
- connectionTimeout = 30 seconds
- idleTimeout = 10 minutes
- maxLifetime = 30 minutes
- connectionTestQuery = "SELECT 1"
- minimumIdle = null
- maximumPoolSize = 10
- poolName = null
- initializationFailFast = true
- isolateInternalQueries = false
- allowPoolSuspension = false
- readOnly = false
- registerMbeans = false
- catalog = null
- connectionInitSql = null
- transactionIsolation = null
- validationTimeout = 5 seconds
- leakDetectionThreshold = null
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement