hello everybody
i don't know what to do furthermore to fix the error -
"no session or session was closed"
here my web.xml
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate.support.Op enSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
here my MetaDaten.hbm.xml file:
<?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="at.univie.auv.redbaron.model.MetaGruppen" table="META_GRUPPEN">
<meta attribute="class-description">
@author ZAL
</meta>
<id name="tid" column="TID">
<generator class="at.univie.auv.util.hibernate.TidGenerator">
<param name="table">META_GRUPPEN</param>
</generator>
</id>
<property name="i3vUserId" column="I3V_USER_ID" type="double" not-null="false"/>
<property name="i3vDate" column="I3V_DATE" type="string" not-null="false"/>
<property name="name" column="Name" type="string" not-null="false"/>
<many-to-one name="application" column="I3V_FILE_ID"
class="at.univie.auv.redbaron.model.I3VFile"
insert="true" update="true" cascade="all" />
<many-to-one name="displayType" column="META_DARSTELLUNG_TYP_ID"
class="at.univie.auv.redbaron.model.MetaDarstellun gstyp"
insert="true" update="true" cascade="all"/>
<set name="metaGruppenSprache" lazy="true" cascade="all">
<key column="RELATION"/>
<one-to-many class="at.univie.auv.redbaron.model.MetaGruppenSpr ache" />
</set>
<set name="keys" table="META_GRUPPEUNTEROBER_HBEZ" lazy="true" cascade="all">
<key column="META_GRUPPEN_ID"/>
<many-to-many column="META_GRUPPEN_ID2"
class="at.univie.auv.redbaron.model.MetaGruppen"/>
</set>
</class>
<query name="getPagesByApplication">
<![CDATA[from MetaGruppen as gruppe
where gruppe.application.tid = :tid
and gruppe.displayType.code = :typeName ]]>
</query>
<query name="getKeysByPage">
<![CDATA[from MetaGruppen as gruppe
where gruppe.application.tid = :tid
and gruppe.displayType.code = :typeName
and gruppe.tid =ageTid ]]>
</query>
</hibernate-mapping>
the action only trys to load data based on the last query "getKeysByPage"
the only thing i get is that lazy init could not be performed - without lazy it works ...
what i'm doing wrong? any help is appreciated
thanx in advance
greetinx
tuor


ageTid ]]>
Reply With Quote