Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Object Relational Mapping
Stop retrieving subclass instances ?
posted 6 years ago
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!
Deleting Record in a Web Application.
java report data grouping
Steps to execute a query
Hibernate- why my query results are caching?