Hibernate JP-QL Parser

Provides capabilities to parse JP-QL Queries and convert them into other executable queries

License

License

Categories

Categories

Hibernate Data ORM
GroupId

GroupId

org.hibernate.jpql
ArtifactId

ArtifactId

hibernate-jpql-parser
Last Version

Last Version

1.0.0.Alpha1
Release Date

Release Date

Type

Type

jar
Description

Description

Hibernate JP-QL Parser
Provides capabilities to parse JP-QL Queries and convert them into other executable queries
Project URL

Project URL

http://ogm.hibernate.org
Project Organization

Project Organization

Hibernate

Download hibernate-jpql-parser

How to add to project

<!-- https://jarcasting.com/artifacts/org.hibernate.jpql/hibernate-jpql-parser/ -->
<dependency>
    <groupId>org.hibernate.jpql</groupId>
    <artifactId>hibernate-jpql-parser</artifactId>
    <version>1.0.0.Alpha1</version>
</dependency>
// https://jarcasting.com/artifacts/org.hibernate.jpql/hibernate-jpql-parser/
implementation 'org.hibernate.jpql:hibernate-jpql-parser:1.0.0.Alpha1'
// https://jarcasting.com/artifacts/org.hibernate.jpql/hibernate-jpql-parser/
implementation ("org.hibernate.jpql:hibernate-jpql-parser:1.0.0.Alpha1")
'org.hibernate.jpql:hibernate-jpql-parser:jar:1.0.0.Alpha1'
<dependency org="org.hibernate.jpql" name="hibernate-jpql-parser" rev="1.0.0.Alpha1">
  <artifact name="hibernate-jpql-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.hibernate.jpql', module='hibernate-jpql-parser', version='1.0.0.Alpha1')
)
libraryDependencies += "org.hibernate.jpql" % "hibernate-jpql-parser" % "1.0.0.Alpha1"
[org.hibernate.jpql/hibernate-jpql-parser "1.0.0.Alpha1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.hibernate : hibernate-search-engine jar 4.2.0.Beta1
org.antlr : antlr jar 3.4.1-preview-jbossorg-0

test (2)

Group / Artifact Type Version
org.antlr : gunit jar 3.4.1-preview-jbossorg-0
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

Hibernate Query Parser

Experimental new parser for HQL and JP-QL queries, to convert these into SQL and other different targets such as Lucene queries, Map/Reduce queries for NoSQL stores, make it possible to perform more sophisticated SQL transformations.

Help

There is much to do and many tests to be ported from the existing parser or added from scratch; anyone is welcome to help by sending pull requests, commenting the code on github directly or by by using the mailing list or IRC chat channels:

Bug Reports:

Building

This project used Gradle as build tool. To build the complete project, run the following command from the directory containing this README file:

./gradlew clean build

You don't need to have Gradle installed; When executed for the first time, gradlew (the "Gradle wrapper") will download Gradle in the required version.

In order to install the JARs created by this project into your local Maven repository, run the following command:

./gradlew clean install

To deploy the modules to the JBoss Maven repository, run:

./gradlew clean publish

Depending on the version of the project (as given via ext.projectVersion) this will perform a deployment either into the JBoss snapshot repository or the JBoss release staging repository (both requires your Nexus credentials to be configured in ~/.m2/settings.xml).

Releasing

Perform the following steps to do a release of this project:

  • delete any stale files and directories from your working copy: git clean -d -x -f
  • verify that everything builds as expected: ./gradlew clean build
  • set project version in build.gradle (property ext.projectVersion) to the release version, e.g. "1.0.0.Alpha3" and commit
  • tag the release in Git: git tag -a 1.0.0.Alpha3 -m 'my version 1.0.0.Alpha3'
  • perform the release: ./gradlew clean publish
  • examine the staged release on the JBoss Nexus server; either close and release or drop the staging repository
  • set project version in build.gradle to the next development version, e.g. "1.0.0-SNAPSHOT" and commit
  • push the master branches and the new tag to the upstream repo
  • release the version in JIRA and transition all involved issues to "Closed"

Source and credits

The grammar and parser code is based on the antlr3 branch previously developed for Hibernate 3; the original code by Steve Ebersole and Alexandre Porcelli can be found on the archived Hibernate subversion repository.

License

This software and its documentation are distributed under the terms of the FSF Lesser GNU Public License (see license.txt).

org.hibernate.jpql

Hibernate

Versions

Version
1.0.0.Alpha1