| Author |
Stop retrieving subclass instances ?
|
david zhang
Greenhorn
Joined: Oct 12, 2003
Posts: 27
|
|
I have a named query as follows:
@NamedQuery (name="emp", query="from Employee")
Employee has subclasses such PartTimeEmployee.
When I run the above query, the results contain instances from PartTimeEmployee table.
How can I retrieve only instances from Employee, not PartTimeEmployee?
I am new in JPA. Thanks for help!
|
 |
 |
|
|
subject: Stop retrieving subclass instances ?
|
|
|