Hello,
Isn't it possible to create a query with a condition checking for elements inside a collection ??.
(the collection is composed by several objects...). In my mapping... the list is declared this way:
Code:
<class name="vuelos.Vuelo" table="Vuelos">
.....
<list name="Recorridos" table="Recorridos" cascade="all">
<key column="id" not-null="true" />
<list-index column="NumeroDeParada" />
<composite-element class="vuelos.Recorrido">
<property name="Aeropuerto" column="Aeropuerto" type="integer" />
<property name="Fecha" column="Fecha" type="timestamp" />
</composite-element>
</list>
Can't i just find the 'Vuelo' with a Recorridos[0].Fecha greater than X date ?
Thanks!!!