users@glassfish.java.net

Re: query on a value derived from a method

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 May 2007 11:37:08 PDT

Hi,

the Java Persistent query language only allows accessing persistent fields or properties in a query, so anything that is mapped to the database. I understand getEstimatedMonthlyPayment is a method, but it does not denote a persistent property, correct? Then you cannot access it in a query.

Is there any issue with storing the value in the database? It looks like you want to use it in a query against the database.

Regards Michael
[Message sent by forum member 'mb124283' (mb124283)]

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