Hibernate inheritance query only for basetype
I have implemented single table inheritance using a Contact class and
extended this class in Person class and Company class.
I want to know if there is a way to select Contact instances from the
database with the properties defined in Contact class. When I query using
"from Contact c" it returns a list of Persons and Company instances not
Contact.
No comments:
Post a Comment