Commit fb7d256e1fb07ae6cbb803ef20afd6bc6d726342
- Diff rendering mode:
- inline
- side by side
addon-jpa/src/main/java/org/springframework/roo/addon/jpa/JpaOperationsImpl.java
(7 / 0)
|   | |||
| 143 | 143 | dataSource.appendChild(createPropertyElement("url", "${database.url}", appCtx)); | |
| 144 | 144 | dataSource.appendChild(createPropertyElement("username", "${database.username}", appCtx)); | |
| 145 | 145 | dataSource.appendChild(createPropertyElement("password", "${database.password}", appCtx)); | |
| 146 | dataSource.appendChild(createPropertyElement("validationQuery", "SELECT 1", appCtx)); | ||
| 147 | dataSource.appendChild(createPropertyElement("testOnBorrow", "true", appCtx)); | ||
| 148 | dataSource.appendChild(createPropertyElement("testOnReturn", "true", appCtx)); | ||
| 149 | dataSource.appendChild(createPropertyElement("testWhileIdle", "true", appCtx)); | ||
| 150 | dataSource.appendChild(createPropertyElement("timeBetweenEvictionRunsMillis", "1800000", appCtx)); | ||
| 151 | dataSource.appendChild(createPropertyElement("numTestsPerEvictionRun", "3", appCtx)); | ||
| 152 | dataSource.appendChild(createPropertyElement("minEvictableIdleTimeMillis", "1800000", appCtx)); | ||
| 146 | 153 | root.appendChild(dataSource); | |
| 147 | 154 | if (dataSourceJndi != null) { | |
| 148 | 155 | dataSourceJndi.getParentNode().removeChild(dataSourceJndi); |
Comments
Add your comment
Please log in to comment



Add a new comment:
Login or create an account to post a comment