Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Re: embedding JPQL in a typesafe manner
Re: embedding JPQL in a typesafe manner [message #434918] Fri, 04 July 2008 08:57 Go to next message
Miguel Garcia is currently offline Miguel GarciaFriend
Messages: 77
Registered: July 2009
Member
Doug,

>I believe the best solution for development time checking of JPQL
>statements is through enhanced tooling.

That would indeed be the ideal solution. As far as I can see, the current
support (as of March 2008) for JPQL completion and validation is discussed
at
http://dev.eclipse.org/mhonarc/lists/dali-dev/msg00590.html

I'll check more regularly the sources of Dali to make sure I don't miss any
developments around that. At this point, it's not obvious to me that (a)
below is easier than (b):

(a) provide a parser for JPQL in Dali (with error recovery),
customize JDT's Content Assist to react based on the partial concrete
syntax tree for JPQL being edited.

vs.

(b) provide a compilation participant to rule out those remaining cases
accepted by JDT type checking,
yet breaking the static semantics of JPQL + underlying DB schema

Both approaches can cope with Content Assist, and both have a hard time with
DB refactorings. Given that it's an open question which approach is more
effective (whatever that means), I guess both need to be further explored to
better understand their pros and cons. I'll explore the JPQL embedding
following the techniques described in http://bugs.eclipse.org/234003


Miguel
http://www.sts.tu-harburg.de/~mi.garcia/



----- Original Message -----
From: "Doug Clarke" <douglas.clarke@oracle.com>
Newsgroups: eclipse.rt.eclipselink
Sent: Thursday, July 03, 2008 12:34 PM
Subject: Re: embedding JPQL in a typesafe manner


>I believe the best solution for development time checking of JPQL
>statements is through enhanced tooling. I believe this is in the Dali
>project's future plans.
>
> In our classic API we have expressions which use a generic API to define
> queries. It still takes strings for the entity attribute names and will
> not report spelling mistakes until runtime.
>
> Doug
>
"Doug Clarke" <douglas.clarke@oracle.com> wrote in message
news:bc9515fe5c3d447ea49467323d9fb9d3$1@www.eclipse.org...
>I believe the best solution for development time checking of JPQL
>statements is through enhanced tooling. I believe this is in the Dali
>project's future plans.
>
> In our classic API we have expressions which use a generic API to define
> queries. It still takes strings for the entity attribute names and will
> not report spelling mistakes until runtime.
>
> Doug
>
Re: embedding JPQL in a typesafe manner [message #434924 is a reply to message #434918] Tue, 08 July 2008 14:36 Go to previous messageGo to next message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Miguel,

The Dali team is just starting the planning of their next release
functionality. You may want to participate in these discussions or get
more actively involved in the project. I see you have posted a similar
question to the Dali forum so you have the necessary links.

You may also be interested in tracking the definition of the JPA 2.0 API
for defining queries. The expert group has stated that they are defining
such an API. They are always looking for feedback and requirements to help
guide the evolution of the specification.

http://www.jcp.org/en/jsr/detail?id=317

Doug
Re: embedding JPQL in a typesafe manner [message #434925 is a reply to message #434924] Tue, 08 July 2008 15:13 Go to previous messageGo to next message
Rakesh is currently offline RakeshFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I am following the progress of the new JPA 2.0 spec, especially JPQL and
its well-formedness rules.

I've noticed that JPQL content assist, syntax highlighting, etc. are
features planned in the JQT project (https://jpaquerytool.dev.java.net/).
I am not affiliated to the JQT project, but it would be great if this
project can be integrated in Dali.

Thanks,
Rakesh.
Re: embedding JPQL in a typesafe manner [message #434927 is a reply to message #434925] Tue, 08 July 2008 17:43 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Rakesh wrote:

> I've noticed that JPQL content assist, syntax highlighting, etc. are
> features planned in the JQT project (https://jpaquerytool.dev.java.net/).
> I am not affiliated to the JQT project, but it would be great if this
> project can be integrated in Dali.

The JQT project is currently LGPL, which is not compatible with the EPL
license according to the Eclipse Foundation. It would have been nice to
consider an integration, but I think license related issues would prevent
it.

We are meeting soon to discuss features for our next release. I will make
sure this topic is discussed. It would be great if we could find a
contributor for this functionality.

Neil
Re: embedding JPQL in a typesafe manner [message #610606 is a reply to message #434918] Tue, 08 July 2008 14:36 Go to previous message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Miguel,

The Dali team is just starting the planning of their next release
functionality. You may want to participate in these discussions or get
more actively involved in the project. I see you have posted a similar
question to the Dali forum so you have the necessary links.

You may also be interested in tracking the definition of the JPA 2.0 API
for defining queries. The expert group has stated that they are defining
such an API. They are always looking for feedback and requirements to help
guide the evolution of the specification.

http://www.jcp.org/en/jsr/detail?id=317

Doug
Re: embedding JPQL in a typesafe manner [message #610609 is a reply to message #434924] Tue, 08 July 2008 15:13 Go to previous message
Rakesh is currently offline RakeshFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

I am following the progress of the new JPA 2.0 spec, especially JPQL and
its well-formedness rules.

I've noticed that JPQL content assist, syntax highlighting, etc. are
features planned in the JQT project (https://jpaquerytool.dev.java.net/).
I am not affiliated to the JQT project, but it would be great if this
project can be integrated in Dali.

Thanks,
Rakesh.
Re: embedding JPQL in a typesafe manner [message #610615 is a reply to message #434925] Tue, 08 July 2008 17:43 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Rakesh wrote:

> I've noticed that JPQL content assist, syntax highlighting, etc. are
> features planned in the JQT project (https://jpaquerytool.dev.java.net/).
> I am not affiliated to the JQT project, but it would be great if this
> project can be integrated in Dali.

The JQT project is currently LGPL, which is not compatible with the EPL
license according to the Eclipse Foundation. It would have been nice to
consider an integration, but I think license related issues would prevent
it.

We are meeting soon to discuss features for our next release. I will make
sure this topic is discussed. It would be great if we could find a
contributor for this functionality.

Neil
Previous Topic:embedding JPQL in a typesafe manner
Next Topic:Probem getting basic sample running
Goto Forum:
  


Current Time: Tue Apr 23 07:48:53 GMT 2024

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

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

Back to the top