Hi there,

I've got a little problem, where I find no starting point to search for:

There is an entity from hibernate wich has got an OneToMany relationship called objektBilder. This relationship should return an List<objektBild>. Which it does normally (the used dataset works correctly in an standalone app). But if I try to use it in Tapestry I got an Error that it does not contain the correct Object. But on line 9 hiberate tells correctly about an entity with the correct Class and ID.


23:01:42,625 DEBUG [AbstractBatcher] preparing statement
23:01:42,625 DEBUG [StringType] binding '402882fb09f078fc0109f07a1b290001' to parameter: 1 23:01:42,625 DEBUG [AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0) 23:01:42,625 DEBUG [Loader] result set contains (possibly empty) collection: [isi.as.hib.objekt.Objekt.objektBilder#402882fb09f078fc0109f07a1b290001] 23:01:42,625 DEBUG [CollectionLoadContext] uninitialized collection: initializing
23:01:42,625 DEBUG [Loader] processing result set
23:01:42,625 DEBUG [Loader] result set row: 0
23:01:42,625 DEBUG [StringType] returning '402882fb09f078fc0109f07a87dd0003' as column: bilderId3_0_ 23:01:42,625 DEBUG [Loader] result row: EntityKey[isi.as.hib.bilder.ObjektBild#402882fb09f078fc0109f07a87dd0003] 23:01:42,625 DEBUG [AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1) 23:01:42,625 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
23:01:42,625 DEBUG [AbstractBatcher] closing statement
23:01:42,625 DEBUG [RequestCycle] Removing attribute org.apache.tapestry.Form 23:01:42,625 DEBUG [RequestCycle] Removing attribute org.apache.tapestry.PageRenderSupport
23:01:42,625 DEBUG [AbstractEngine] Uncaught exception
org.apache.hivemind.ApplicationRuntimeException: Object with id: 402882fb09f078fc0109f07a87dd0003 was not of the specified subclass: isi.as.hib.bilder.ObjektBild (loaded object was of wrong class) [context:/WEB-INF/Admin/Objekte/Miete/WohnungNeu.page, line 6, column 70] at org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:380) at org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:71) at $ResponseRenderer_109f079235d.renderResponse($ResponseRenderer_109f079235d.java) at org.apache.tapestry.engine.DirectService.service(DirectService.java:137)
   at $IEngineService_109f07923c9.service($IEngineService_109f07923c9.java)

My WohnungNeu.page-File looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
 "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
 "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
<page-specification class="isi.pages.admin.objekte.miete.WohnungNeu">

   <description>add a description</description>
   <property name="objbild" />
   <property name="grbild"/>
   <property name="teaserBild"/>

</page-specification>
But the property from objbild (wich should be the property) didn't accept an class attribute anymore, so I couldn't specify the type explicitly.

Has anybody an idea? Or is there any good tapestry - hibernate tutorial on the internet?

yours

marc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to