users@glassfish.java.net

Re: query on a value derived from a method

From: <glassfish_at_javadesktop.org>
Date: Thu, 24 May 2007 12:46:55 PDT

Hi,

yes after adding a persistent property estimatedMonthlyPayment you can use it in the query. Please make sure to use the property estimatedMonthlyPayment in your query (instead of the accessor method getEstimatedMonthlyPayment):

SELECT o FROM House as o WHERE o.estimatedMonthlyPayment BETWEEN :startPrice AND :endPrice

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

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