-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HQL Query... search inside a collection.
PostPosted: Tue Oct 25, 2005 8:43 pm 
Beginner
Beginner

Joined: Thu Jul 14, 2005 10:11 am
Posts: 32
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!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.