-->
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.  [ 2 posts ] 
Author Message
 Post subject: [3.0.3] problem with migration
PostPosted: Fri Apr 29, 2005 3:04 pm 
Newbie

Joined: Mon Sep 08, 2003 3:04 pm
Posts: 12
Hello,
I try to migrate a webapp actually Struts1.1 and Hibernate1.2.5 based and I'm a little confused.
I've an mapping of subclasses like that :

Code:
<class name="Demande" table="tbl_demandes">

<id name="key" column="id" type="long">
<generator class="sequence">
    <param name="sequence">seq_tbl_demandes</param>
</generator>
<!--generator class="assigned"/-->
</id>
<discriminator column="class"/>

<property name="statut" type="string"/>

<subclass name="com.Purchase" discriminator-value="Purchase">
    <property name="periodicity" type="string"/>
</subclass>
</class>


In a controller, I should do :
Code:
Demande demande = (Demande)session.load(Demande.class, new Long(1))
request.setAttribute("demande", demande);

"demande" is an instance of Purchase
Then in a jsp :
<bean:write name="demande" property="periodicity"/>

==> Exception
javax.servlet.ServletException: No getter method for property periodicity of bean demande


I can't understand why
Can you help me ?
Thanks
Franck




[/b]
Code:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 29, 2005 3:05 pm 
Newbie

Joined: Mon Sep 08, 2003 3:04 pm
Posts: 12
I precise The webapp is now under Struts 1.2 and hibernate 3.02
thanks


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