I checked everything, but I still get a null when I try to get the
valueObject out of the appropriate getter-method. 
Yes, I have <entitycmp/> included im my xdoclet-build.xml.

--> MY CMP-OBJECT WORKS GENERALLY FINE (find everything, get all values
separately)

This is my dedclaration on class-level:

--------------------- 8< schnipp ------------------------------------
 * @ejb.value-object
 *           name = "RealEstateDataAll"
 *           match = "*"
 * 
---------------------------------------------------------------------

Here my declarations at method-level with the mehtods to retrieve and
hand-in the valueObject:

--------------------- 8< schnipp ------------------------------------/**
 * @ejb.interface-method */
 public abstract RealEstateDataAllValue getRealEstateEntry(); // gives me a
"null" value
 
 /**
 * @ejb.interface-method
 */
 public abstract void setRealEstateEntry( RealEstateDataAllValue par ); 
---------------------------------------------------------------------

Here is my xdoclet-build.xml in total:

--------------------- 8< schnipp ------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project default="_generation_" name="XDoclet Generator">
  <path id="xdoclet.classpath"><pathelement
location="D:/Work_progr/Java/corpsim/build"/>
    <pathelement location="D:/Work_progr/Java/corpsim/javax.servlet.jar"/>
    <pathelement location="D:/Work_progr/Java/corpsim/jboss-j2ee.jar"/>
    <pathelement location="C:/Programme/j2sdk1.4.0_02/lib/mailapi.jar"/>
    <pathelement location="C:/Programme/j2sdk1.4.0_02/lib/mail.jar"/>

    <fileset
dir="C:/Programme/eclipse/plugins/org.jboss.ide.eclipse.xdoclet.core_1.2.2/"
>
     <include name="*.jar"/>
    </fileset>
  </path>
  <target name="_generation_" depends="N10004,N10541"/>
  <target name="N10004" description="EJB">
    <taskdef classpathref="xdoclet.classpath"
classname="xdoclet.modules.ejb.EjbDocletTask" name="ejbdoclet"/>
      <ejbdoclet ejbSpec="2.0"  destDir="src"  verbose="" >
        <fileset dir="src"  includes="**/*Bean.java" ></fileset>
        <deploymentdescriptor destDir="build/META-INF"
></deploymentdescriptor>
        <homeinterface></homeinterface>
        <jboss Version="3.0"  destDir="build/META-INF" ></jboss>
        <remoteinterface></remoteinterface>
        <packageSubstitution packages="ejb, beans"
substituteWith="interfaces" ></packageSubstitution>
        <entitypk></entitypk>
        <entitycmp></entitycmp>
        <localhomeinterface></localhomeinterface>
        <localinterface></localinterface>
        <valueobject></valueobject>
      </ejbdoclet>
  </target>
  <target name="N10541" description="WEB">
    <taskdef classpathref="xdoclet.classpath"
classname="xdoclet.modules.web.WebDocletTask" name="webdoclet"/>
     <webdoclet destDir="src/WEB-INF"  verbose="" >
       <fileset dir="src"  includes="web_*.java" ></fileset>
     </webdoclet>
  </target>
</project>
---------------------------------------------------------------------------

Could someone check this for me?

Thank you for your help

Klaus

-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von
Harkness, David
Gesendet: Samstag, 31. Januar 2004 09:52
An: [EMAIL PROTECTED]
Betreff: RE: [Xdoclet-user] Help me using ValueObjects


[EMAIL PROTECTED] wrote:
> [...]
> 
> That procucet the class for me. Works.
> 
> In my CMP bean, I include methods (tried several different
> declarations): 
> 
> /**
> * @ejb.interface-method
> * @ejb.value-object
> */
> public abstract RealEstateDataAllValue getRealEstateEntryValue();
> 
> /**
> * @ejb.interface-method
> * @ejb.value-object
> */
> public abstract void setRealEstateEntryValue( RealEstateDataAllValue
par ); 

First, you don't need the @ejb.value-object tags on these accessors. You
want them only on the field accessors to be included in the value
objects and at the class level, but that's not the problem. You also
need to generate an entity bean subclass using the <entitycmp/> subtask.
This will subclass your bean to implement the value-object accessors as
well as the standard EJB entity bean methods.

I think that's all you're missing. Good luck!

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

<<attachment: winmail.dat>>

Reply via email to