-->
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: QueryException: outer or full join must be followed by path
PostPosted: Tue Aug 03, 2004 1:02 am 
Newbie

Joined: Tue Jul 20, 2004 12:27 am
Posts: 8
Hi,
I am trying to learn how outer joins work............my application is throwing some exceptions like this........It would be great if i get some clue regarding this............especially regarding .....Exceptionouter or full join must be followed by path expression.......

10:20:11,631 ERROR [BasicPropertyAccessor] IllegalArgumentException in class: com.vstl.hybernate.action.Item, getter method of property: id
10:20:11,641 ERROR [STDERR] Hibernate ExceptionIllegalArgumentException occurred calling getter of com.vstl.hybernate.action.Item.id
10:20:11,651 INFO [STDOUT] item added
10:20:11,821 ERROR [STDERR] Hibernate Exceptionouter or full join must be followed by path expression [select i from com.vstl.hybernate.action.Item as i left outer join fetch com.vstl.hybernate.action.Item as j]
10:20:11,851 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.RuntimeException
10:20:11,851 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: net.sf.hibernate.QueryException: outer or full join must be followed by path expression [select i from com.vstl.hybernate.action.Item as i left outer join fetch com.vstl.hybernate.action.Item as j]
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

My xml file looks like this.........

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<class name="com.vstl.hybernate.action.Item" table="item" dynamic-insert="true" dynamic-update="true">
<id name="id" column="id" type="java.lang.Long" >
<generator class="identity" />
</id>
<many-to-one name="id" class="com.vstl.hybernate.action.Item" update="false" insert="false" outer-join="true" />
<!-- <set name="mine" table="item" outer-join="true">
<many-to-many
column="name"
class="com.vstl.hybernate.action.Item"/>
</set> -->

<property name="name" column="name" type="java.lang.String" />
<property name="description" column="description" type="java.lang.String" />
</class>
</hibernate-mapping>

Thanks in advance....
Arun

_________________
Aru


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.