-->
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.  [ 5 posts ] 
Author Message
 Post subject: join problem
PostPosted: Thu May 06, 2004 7:12 am 
Newbie

Joined: Mon Apr 05, 2004 10:40 am
Posts: 19
i my request hql
the join dosnt work

exemple:
"select elements(interv.actionsindividuelle) from com.cosoftware.Intervenant interv join interv.actionsindividuelle as indiv where interv.id_intervenant=1 and indiv.id_action=2 ");

thank for all suggestions.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 8:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Doesnt work is really not a sufficient description of the problem.


Top
 Profile  
 
 Post subject: join problem
PostPosted: Thu May 06, 2004 10:17 am 
Newbie

Joined: Mon Apr 05, 2004 10:40 am
Posts: 19
the problem is :

when i execute the query hql;it dosnt retrieve the right information from
the database (mysql)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 10:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
don't forget what we advice you at http://forum.hibernate.org/viewtopic.php?t=930309

secondly:
When asking questions, give at least:
the Hibernate version
your mapping documents
the Java code between sessionFactory.openSession() and session.close()
the full stack trace of any exception that occurs
the name and version of the database you are using
a debug level Hibernate log excerpt is also appreciated


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 11:10 am 
Newbie

Joined: Mon Apr 05, 2004 10:40 am
Posts: 19
sorry;

i use hibernate 2.1
mysql 4.0.15

Session session = ConnectionFactory.getInstance().getSession();

try
{
query query =
session.createQuery(
"select elements(interv.actionsgroupe)
from com.cosoftware.Intervenant interv
join interv.actionsgroupe particip where
interv.id_intervenant=1 and particip.statut='


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

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.