added Nullable annotations

This commit is contained in:
Timo Westkämper 2010-09-20 10:30:57 +00:00
parent a3bc91dc8a
commit 6a08f3d912
4 changed files with 47 additions and 1 deletions

View File

@ -161,7 +161,16 @@
</configuration>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
<plugin>
<groupId>com.mysema.maven</groupId>

View File

@ -0,0 +1,31 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>full-deps</id>
<formats>
<format>zip</format>
</formats>
<files>
<file>
<source>../querydsl-root/LICENSE.txt</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
<fileSets>
<fileSet>
<directory>target</directory>
<includes>
<include>*.jar</include>
</includes>
<excludes>
<exclude>*-sources.jar</exclude>
</excludes>
<outputDirectory>/lib</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>

View File

@ -8,6 +8,8 @@ package com.mysema.query.jpa.hibernate.sql;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.StatelessSession;
@ -49,8 +51,10 @@ public final class HibernateSQLQuery extends AbstractSQLQuery<HibernateSQLQuery>
private String cacheRegion;
@Nullable
private Map<Object,String> constants;
@Nullable
private List<Path<?>> entityPaths;
private int fetchSize = 0;

View File

@ -8,6 +8,7 @@ package com.mysema.query.jpa.sql;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.Query;
@ -43,6 +44,7 @@ public final class JPASQLQuery extends AbstractSQLQuery<JPASQLQuery> implements
private static final Logger logger = LoggerFactory.getLogger(JPASQLQuery.class);
@Nullable
private Map<Object,String> constants;
// private List<Path<?>> entityPaths;