Hi nugaluga,
nugaluga wrote:
can you explain what you mean by associated entities?
An associated entity is an entity to which there is a relation (s.c., association). In your mappings, i.e., the Person entity is an associated entity of the Calendar entity. Read this:
Association Mappingsnugaluga wrote:
If I query Event.class, i want to filter the dates on that the event
but if the Event.class is an instance of Recurring Events, which extends events, than i want it to return the recurring event as well.
I can do this in two queries, but i'd rather do it in one.
You can do that, Hibernate supports polymorphism. Consult the Hibernate docs on
Inheritance mapping. If you use implicit polymorphism querying the parent entity will also retrieve the children.
CU
Froestel