views:

13

answers:

1

Is there any other way to do typesafe queries with TopLink than through the JPA 2.0 Criteria API?

From a sales meeting I got the impression that this is possible through a proprietary part in TopLink, but I couldn't find any related documentation.

+2  A: 

No, JPA 2.0 is the only way.

TopLink does also provide Expression objects, but they are not typed. If you just want dynamic queries, you can use Expressions instead of Criteria.

James
@James, that's what I thought. Thanks.
Timo Westkämper