diff options
author | Jim Hahn <jrh3@att.com> | 2018-02-09 12:20:56 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2018-02-10 17:04:33 -0500 |
commit | 86664073b5a778c56e831d64b3a1883818af0ffe (patch) | |
tree | 9842efab59b2737c48c0aa1b0763f802fc708a9b /pom.xml | |
parent | e9fd35a303a5f5f41726c3216c8acd7598a3a494 (diff) |
Add AutoClose wrappers for JPA classes
Added EntityMgrCloser and EntityMgrTrans classes that will automatically
close/rollback the wrapped JPA classes. As a result, these classes can
be used in try-with-resource statements to ensure that the JPA
EntityTransaction is rolled back and the EntityManager is closed.
Add "build" section into pom to make it consistent with other poms
in common.
Changed scope to "provided" in utils pom for javax.persistence to
prevent clashes with other projects that depend on the utils project.
Changed scope to "test" in utils pom and to "provided" in utils-test
pom for junit.
Fixed license date in EntityTransCloser.
Fixed license titles in utils & utils-test source files.
Moved files from package xxx.test.jpa to package xxx.jpa, because they
are not test-specific classes.
Include exception when logging message in ThrowablesTester, hopefully
eliminating sonar complaint.
Change-Id: I531f20d93a679d4bb432c1d75c1feac0e334bc44
Issue-ID: POLICY-582
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,7 @@ <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <logback.version>1.2.3</logback.version> + <javax.persistence.api.version>1.0.2</javax.persistence.api.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <nexusproxy>https://nexus.onap.org</nexusproxy> <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> @@ -53,6 +54,7 @@ <modules> <module>utils-test</module> + <module>utils</module> <module>common-logging</module> <module>integrity-audit</module> <module>integrity-monitor</module> |