openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From No1UNo <je...@jerrycarter.org>
Subject Re: JPA for portable database management (and wishes for JPA 3.0)
Date Thu, 03 Jun 2010 21:06:40 GMT


On Jun 3, 2010, at 4:26 PM, Pinaki Poddar [via OpenJPA] wrote:
>   The provision to allow function() expression in Criteria API was to accommodate database
functions. Not sure why you qualified its location as "a rather unexpected place". 

To quote from "Pro JPA 2: Mastering the Java Persistence API", p. 264:

> Unlike native SQL queries, which are clearly marked, function expressions are a small
part of what otherwise looks like a normal portable JPA query that is actually tied to database-specific
behavior.

I am not the only one to find this "a rather unexpected place".  Unlike createNativeQuery
which is easily identified by grep, searches for 'function' require a bit more care and are
likely to be missed.

-=- Jerry
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/JPA-for-portable-database-management-tp5134215p5136980.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message