Thanks Andrew, if I fill the name tag for the valueobject it works fine. I reported a bug in the JIRA.
-----Original Message----- From: Andrew Stevens [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 1:48 AM To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] The generated Valueobjects does not have thegiven base class On Thu, 2004-01-08 at 13:36, Paróczi Zsolt wrote: > In the Beta3 I haven't had any problem with this. Strange, as the only change in the VO's tag handler since then (according to the CVS tags) was the addition of ifGeneratePKConstructor, which shouldn't affect this. > I have this in the Bean: > > /** > * > * @author Westel EJB generator > * @version 1.0 > * > * @ejb.bean name="ServiceProvider" > * type="CMP" > * cmp-version="2.x" > * > local-jndi-name="hu/westel/cnr/rangemanagement/entity/ServiceProviderLocal" > * view-type = "local" > * > * @ejb.persistence > * table-name="cnr.serviceprovider" > * > * @ejb.ejb-ref ejb-name="Block" > * view-type="local" > * ref-name="ejb/BlockLocal" > * @ejb.ejb-ref ejb-name="Carry" > * view-type="local" > * ref-name="ejb/CarryLocal" > * > * @ejb.value-object > * extends="hu.westel.framework.valueobject.BaseVO" > * And this works if you revert back to XDoclet beta 3? Looking at the tag handler's code, I see String valueObjectName = attributes.getProperty("valueobject", valueObjectName()); ... String attr = tag.getAttributeValue("extends"); if (valueObjectName.equals(tag.getAttributeValue("name")) && attr != null) extendsFrom = attr; The value passed into the valueobject property would (I think) have defaulted to the ejb name with nothing specified, however, the getAttributeValue("name") will probably just return null or empty string; hence it never matches and the VO defaults back to extending Object. At least, that's my guess. At any rate, it sounds like a bug - please raise an issue in JIRA for it. As a workaround, try adding a "name" parameter to your @ejb.value-object tag and see if that helps. Andrew. > > The generated VO start with: > > /* > * Generated by XDoclet - Do not edit! > */ > package hu.westel.cnr.rangemanagement.valueobject; > > /** > * Value object for ServiceProvider. > * > * @xdoclet-generated at 2004.01.08 > * @copyright The XDoclet Team > * @author XDoclet > * @version ${version} > */ > public class ServiceProviderVO > extends java.lang.Object > implements java.io.Serializable > > The BaseVo.java is in different location although is in the ejbdoclet task fileset: > <fileset dir="${framework.dir}"> > <include name="${framework.root}/entity/BaseEJB.java"/> > <include name="${framework.root}/session/BaseSessionEJB..java"/> > <include name="${framework.root}/valueobject/BaseVO.java"/> > </fileset> ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
