[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] possible issue updating from v2.3.3 to v2.4.0
|
Hi Phillip,
I can't see anything wrong with your query. There have been a number of
fixes since 2.4.0 in the new parser. It would be worth trying a recent 2.4.1
build to confirm you are still seeing a problem:
http://www.eclipse.org/eclipselink/downloads/nightly.php
You can also work around the issue by reverting to the old parser using the
following persistence property.
eclipselink.jpql.parser=org.eclipse.persistence.queries.ANTLRQueryBuilder
-Tom
On 13/09/2012 1:08 PM, Phillip Ross wrote:
Hi all, I'm testing v2.4.0 of eclipselink and the first issue I run
into is an NPE in a hermes parser class. Just to start
troubleshooting I wanted to see if maybe my query is incorrectly using
a query expression that has a problem that 2.3.x was more forgiving
about.
I have an entity (Product) with an element collection map:
@ElementCollection protected Map<String, String> localizedNames;
(The property is protected probably because it uses an inheritance
strategy and classes which extend it.)
Here is the query declaration:
@NamedQuery(name="Product.findByLocalizedName", query="select p from
Product p join p.localizedNames m where key(m)=:language and
value(m)=:name")
Does this appear to have any obvious problems I might be missing?
Thanks
- Phillip
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users