Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » JPA hierarchical queries
JPA hierarchical queries [message #1090733] Tue, 20 August 2013 15:08 Go to next message
Roger Spall is currently offline Roger SpallFriend
Messages: 17
Registered: January 2013
Junior Member
I could continue to use Native Eclipselink queries to make use of support for hierarchical queries, however I was wondering whether there are any plans to support hierarchical querying in JPA.

Meanwhile, without support for hierarchical queries, what is the 'best practice' for implementing hierarchical querying in JPA?
Re: JPA hierarchical queries [message #1096571 is a reply to message #1090733] Wed, 28 August 2013 15:28 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Hierarchical queries were added to JPQL in EclipseLink 2.5,

see,
http://java-persistence-performance.blogspot.com/2013/06/eclipselink-supports-hql-and-several.html

Also, you can always use an EclipseLink ReadAllQuery with JPA using JpaEntityManager.createQuery(DatabaseQuery).


James : Wiki : Book : Blog : Twitter
Re: JPA hierarchical queries [message #1106201 is a reply to message #1096571] Tue, 10 September 2013 20:40 Go to previous message
Roger Spall is currently offline Roger SpallFriend
Messages: 17
Registered: January 2013
Junior Member
James...

You're the man!

Thanks
Previous Topic:Typed query hints
Next Topic:Automatically generated table maps java.util.Date to VARCHAR
Goto Forum:
  


Current Time: Sun Dec 21 16:45:45 GMT 2014

Powered by FUDForum. Page generated in 0.01444 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software