-->
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.  [ 4 posts ] 
Author Message
 Post subject: QueryExpression"outer or full join must be followed by
PostPosted: Thu Dec 09, 2004 8:37 am 
Newbie

Joined: Thu Dec 09, 2004 8:21 am
Posts: 3
Hibernate version:2.1.6


Hibernate version:2.1.6

At first, I have to apologize to my English is very poor.

Why I can't use this hql-query?
This query throw a QueryExpression "outer or full join must be followed by path expression".

/query/
    from
    study.persistent.Team as tm left outer join
    study.persistent.Member as mem
    where
    tm.id = mem.teamId

/TABLE/
    MEMBER
    ID
    NAME
    TEAM_ID

    TEAM
    ID
    NAME

Team and Member have no-mapping-relations on hbm.xml.
thank you.[/list]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 8:41 am 
Newbie

Joined: Thu Dec 09, 2004 8:21 am
Posts: 3
sorry, i missed.

/query/

Code:
from
    study.persistent.Team as tm left outer join
    study.persistent.Member as mem
where
    tm.id = mem.teamId



/TABLE/


Code:
MEMBER
  ID
  NAME
  TEAM_ID

TEAM
  ID
  NAME


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 9:47 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
it could be usefull to read again the doc
show mapping file

you should have something like
from Object o
left join o.property

property begin an entity or collection

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 10:13 pm 
Newbie

Joined: Thu Dec 09, 2004 8:21 am
Posts: 3
anthony wrote:
it could be usefull to read again the doc
show mapping file

you should have something like
from Object o
left join o.property

property begin an entity or collection


I wonder there is any way to use outer join without using mapping-file-relation.
I am convinced by your reply.
Thank you very much.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.