Hello all,
I have an object structure with a Child dataobject which inherits from a
Parent which is linked to a db_entity. I am trying to use the Parent on
a GUI and the Child on another GUI. The Child overrides some methods
from the Parent (but the db table is the same) and so is mandatory that
on each GUI their respective searches yeld Child objects or Parent
objects. On the GUI that uses the Child everything goes according plan,
the performQueries return lists of Children. But on the Parent GUI I call
context.performQuery(new SelectQuery(Parent.class))
but the method returns also a list of Children, which are incompatible
with the parent GUI. Is there any way that this query returns Parents
instead of Children? I was trying these inheritance so that i could
reuse all db fields and relationships from the parent on the child.
--
Bruno René Santos | [email protected] <mailto:[email protected]> |
Gestor de Projectos | Analista | Programador | Investigador
Holos - Soluções Avançadas em Tecnologias de Informação S.A.
Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque
Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal
Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient or the person
responsible for delivering the email to the intended recipient, be
advised that you have received this email in error and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you have received this email in error please
notify Bruno René Santos by telephone on +351 210 438 686