Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Conditional LEFT JOIN in JPQL

Hi, Bernard,

  Know nothing about EL API, but, according to Tom's example, might it be possible to define queryKey on the fly with User.getId() as ConstantExpression and destroy it after query execution. Maybe Tom can suggest something about this.
  Another question, which rises, how to retrieve both objects in result list, like List<Product, Favourite>, because ReadAllQuery(Product.class) from given example seems to return only list of Products.
  And last question for Tom: As you said, there is some work to support queryKeys in JPQL. Can you tell us, in which version of EL it will be supported:? For example:

  SELECT p, f FROM Product p join p.favouritepk f 



2010/5/11 <bht@xxxxxxxxxxxxx>
Hello Vidas,

I created a testcase and Tom responded to it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=312146


Can you believe that even with the current EclipseLink version, using
the proprietary EclipseLink API, it is not possible to write a query
with a conditional join where the condition comes from a parameter
value?

This is the simplest case I have been able to suggest. So no userId
parameter for the query :(.

It looks like I have to wait for some time (months?, a year?) before
this is implemented, even before the spec is changed.

Would you have any comment? Please vote for this.

Best regards,

Bernard

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



--
Sincerely,
Vidas

Back to the top