CCM NG: Enabled generation of Criteria Metamodel classes required for completly type safe criteria queries.
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4569 8810af33-2d31-482b-a856-94f89814c4df
Former-commit-id: 3d7a522844
pull/2/head
parent
6816b5938b
commit
79797797ca
|
|
@ -48,6 +48,11 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-envers</artifactId>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,11 @@
|
|||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-envers</artifactId>
|
||||
|
|
@ -239,6 +243,8 @@
|
|||
</resource>
|
||||
</resources>-->
|
||||
|
||||
|
||||
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
|
|
@ -267,19 +273,6 @@
|
|||
<encoding>${project.build.sourceEncoding}</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!--<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>jaxb2-maven-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>schemagen</id>
|
||||
<goals>
|
||||
<goal>schemagen</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public class CcmObjectRepository extends AbstractEntityRepository<Long, CcmObjec
|
|||
final TypedQuery<CcmObject> query = getEntityManager().createNamedQuery(
|
||||
"CcmObject.findByUuid", CcmObject.class);
|
||||
query.setParameter("uuid", uuid);
|
||||
|
||||
|
||||
try {
|
||||
return Optional.of(query.getSingleResult());
|
||||
} catch (NoResultException ex) {
|
||||
|
|
|
|||
|
|
@ -53,6 +53,11 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-envers</artifactId>
|
||||
|
|
|
|||
16
pom.xml
16
pom.xml
|
|
@ -171,6 +171,11 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>1.12</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
|
|
@ -253,6 +258,17 @@
|
|||
<version>5.0.7.Final</version>
|
||||
</dependency>
|
||||
|
||||
<!--
|
||||
Hibernate Metamodel Generator. Required for generating the
|
||||
metamodel classes for use with JPA Criteria API for completly
|
||||
typesafe queries.
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
<version>5.0.7.Final</version>
|
||||
</dependency>
|
||||
|
||||
<!--
|
||||
Hibernate Envers, used for providing versioning/auditing for
|
||||
Entities.
|
||||
|
|
|
|||
Loading…
Reference in New Issue