users@glassfish.java.net

Re: [JPA] Join with inheritance

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Aug 2007 07:17:01 PDT

Why would you not just query the EmpFullTime entities instead of the base class entities? Your stated that you only want "full-time employees", so querying over the EmpFullTime entities would give you that constraint right off, then you can use the "salary" property to filter out only those over 1000.

Am I missing something?
[Message sent by forum member 'bbergquist' (bbergquist)]

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