users@glassfish.java.net

Re: EJBQL Question

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 May 2007 13:00:33 PDT

You can't do it,

If 'asString' is transient, then it cannot be accessed by the query,
If it is non-transient, then JPA in some situations seek for such a column, which does not exist,

non-JPQL would be tough, coz you don't know what type child do you have,
I expected it to construct the SQL query by the column/value of the correct child, but it doesn't work that way, I assume...


Thanks
[Message sent by forum member 'trouby' (trouby)]

http://forums.java.net/jive/thread.jspa?messageID=217470