-->
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: createSQLQuery
PostPosted: Thu Sep 01, 2011 5:30 pm 
Newbie

Joined: Thu Sep 01, 2011 5:15 pm
Posts: 1
bonjour
je souhaite votre aide

voici code sql
Code:
select tnetworking.`idUt` ,tnetworking.`idArti`,tnetworking.idamipartge ,
tutilisateur.nom ,tutilisateur.prenom ,tutilisateur.photo ,tutilisateur.`ID`,
tarticle.`ID`, tarticle.titre , tarticle.`date` ,tarticle.image ,tarticle.video

from tnetworking , tutilisateur ,tarticle 
where tnetworking.idamipartge=2= tutilisateur.`ID` and tarticle.`ID`=tnetworking.`idArti`



j'ai problème avec createSQLQuery
je souhaite mettre la résultat de la requête dans une list

Code:
Query query = session.createSQLQuery("select * from tnetworking , tutilisateur ,tarticle where idamipartge=:idu= tutilisateur.ID and tarticle.ID=tnetworking.idArti");

query.setInteger("idu", 2);
mur=query.list();
System.out.println("aaaaaaaaaaaa"+mur);





output error
Code:

[[Ljava.lang.Object;@70c26b16, [Ljava.lang.Object;@6c04ab2f, [Ljava.lang.Object;@2682d210, [Ljava.lang.Object;@56ad2c30, [Ljava.lang.Object;@3302fc5, [Ljava.lang.Object;@50903025,




thank you


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.