Title: Empty value-object instantiated in *CMP.java

Hello

I use XDoclet 1.2b3.

I use XDoclet to generate the value-objects. These value-objectc are generated correctly.

But the concerning *CMP.java implementation is not  generated completly.

The getXXXValue method is generated but the setting of the attributes into the value-objects is missing:


//Codefragment of generated LeistungCMP

/* Value Objects BEGIN */

public com.pulinco.ecc.server.services.tarmed.leistung.LeistungTestValue getLeistungTestValue()
   {
      LeistungTestValue = new com.pulinco.ecc.server.services.tarmed.leistung.LeistungTestValue();
      try
         {

         }
         catch (Exception e)
         {
            throw new javax.ejb.EJBException(e);
         }

          return LeistungTestValue;
   }

/* Value Objects END */


As you can see, there's an empty try block. The LeistungTestValue-Object is instantiated, but it's allways empty!

Here's a code-fragment with xdoclet-tags of my Bean:


* @ejb.value-object
*   name="LeistungTest"
*   match="Test"
*
*/
public abstract class LeistungBean implements EntityBean {

...

/**
  * @return The KapitelNr this Leistung belongs to
  * @ejb.persistent-field
  * @ejb.persistence
  *    column-name="KNR"
  * @ejb.interface-method
  *    view-type="both"
  * @ejb.value-object match="Test"
*/
public abstract String getKapitelNr();


...

/**
 *
 *
 * @ejb.interface-method
 *    view-type="remote"
 */
public abstract com.pulinco.ecc.server.services.tarmed.leistung.LeistungValueTest getLeistungTestValue();




Have I anything forgotten?
Thanks for hints

Andreas


       

Reply via email to