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
|