Querydsl - JPA support.
JPA support for Querydsl.
Here is the list of declaration for querydsl-jpa. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-jpa</artifactId> <version>3.2.0</version> </dependency>
If you think this Maven repository POM file listing for querydsl-jpa is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The querydsl-jpa-3.2.0 has 11 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
JPA Hibernate | hibernate-core 4.1.7.Final A module of the Hibernate Core project | 26 |
JPA Hibernate | hibernate-entitymanager 4.1.7.Final A module of the Hibernate Core project | 9 |
JPA Hibernate | hibernate-validator 4.3.0.Final Hibernate's Bean Validation (JSR-303) reference implementation. | 31 |
JPA Hibernate | hibernate-jpa-2.0-api 1.0.0.Final Hibernate definition of the Java Persistence 2.0 (JSR 317) API. | 67 |
JPA Hibernate | openjpa-persistence 2.2.0 OpenJPA Persistence | 7 |
JDBC | openjpa-persistence-jdbc 2.2.0 OpenJPA Persistence JDBC | 10 |
Library | bonecp 0.7.1.RELEASE Lightweight connection pool. | 43 |
The following plugins are used in the querydsl-jpa-3.2.0.jar
The following packages are defined in the querydsl-jpa-3.2.0.jar
com.mysema.query.jpa com.mysema.query.jpa.hibernate com.mysema.query.jpa.hibernate.sql com.mysema.query.jpa.impl com.mysema.query.jpa.sql
Here is the content of the POM file.
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-root</artifactId> <version>3.2.0</version> <relativePath>../querydsl-root/pom.xml</relativePath> </parent> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-jpa</artifactId> <name>Querydsl - JPA support</name> <description>JPA support for Querydsl</description> <packaging>jar</packaging> <properties> <hibernate.version>4.1.7.Final</hibernate.version> <hibernate.validator.version>4.3.0.Final</hibernate.validator.version> </properties> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>${hibernate.version}</version> <exclusions> <exclusion> <groupId>cglib</groupId> <artifactId>cglib</artifactId> </exclusion> <exclusion> <groupId>asm</groupId> <artifactId>asm</artifactId> </exclusion> </exclusions> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>${hibernate.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>${hibernate.validator.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.hibernate.javax.persistence</groupId> <artifactId>hibernate-jpa-2.0-api</artifactId> <version>1.0.0.Final</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>${project.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-sql</artifactId> <version>${project.version}</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </dependency> <!-- test --> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version>${postgresql.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.1.0.7.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-persistence</artifactId> <version>2.2.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-persistence-jdbc</artifactId> <version>2.2.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.batoo.jpa</groupId> <artifactId>batoo-jpa</artifactId> <version>2.0.1.0-SNAPSHOT</version> <scope>test</scope> </dependency> <dependency> <groupId>com.jolbox</groupId> <artifactId>bonecp</artifactId> <version>0.7.1.RELEASE</version> <scope>test</scope> </dependency> <dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>${hsqldb.version}</version> <scope>test</scope> <!-- license : TODO --> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${h2.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>${derby.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>net.sourceforge.jtds</groupId> <artifactId>jtds</artifactId> <version>${jtds.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-core</artifactId> <version>${project.version}</version> <scope>test</scope> <type>test-jar</type> </dependency> <dependency> <groupId>jdepend</groupId> <artifactId>jdepend</artifactId> <version>2.9.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.springsource.bundlor</groupId> <artifactId>com.springsource.bundlor.maven</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <id>apt</id> <goals> <goal>jar</goal> </goals> <configuration> <classifier>apt</classifier> <classesDirectory>src/apt</classesDirectory> </configuration> </execution> <execution> <id>test-jar</id> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>one-jars</id> <goals> <goal>single</goal> </goals> <phase>package</phase> <configuration> <descriptors> <descriptor>src/main/assembly.xml</descriptor> <descriptor>src/main/assembly-hibernate.xml</descriptor> </descriptors> <outputDirectory>${project.build.directory}</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.6</version> <configuration> <includes> <include>**/*Test.java</include> </includes> <systemProperties> <property> <name>derby.stream.error.file</name> <value>target/derby.log</value> </property> </systemProperties> </configuration> <executions> <execution> <id>verification</id> <goals> <goal>test</goal> </goals> <phase>verify</phase> <configuration> <systemProperties> <property> <name>version</name> <value>${project.version}</value> </property> </systemProperties> <includes> <include>com/mysema/query/PackageVerification.java</include> </includes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.mysema.maven</groupId> <artifactId>apt-maven-plugin</artifactId> <executions> <execution> <goals> <goal>test-process</goal> <goal>add-test-sources</goal> </goals> <configuration> <outputDirectory>target/generated-test-sources/java</outputDirectory> <processor>com.mysema.query.apt.hibernate.HibernateAnnotationProcessor</processor> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-maven-plugin</artifactId> <version>${project.version}</version> <!-- <executions> <execution> <goals> <goal>test-export</goal> </goals> </execution> </executions> --> <configuration> <jdbcDriver>org.apache.derby.jdbc.EmbeddedDriver</jdbcDriver> <jdbcUrl>jdbc:derby:target/derbydb;create=true</jdbcUrl> <packageName>com.mysema.query.jpa.domain.sql</packageName> <targetFolder>src/test/java</targetFolder> <namePrefix>S</namePrefix> </configuration> <dependencies> <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>${derby.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> </project>