14 Replies Latest reply on Oct 25, 2004 8:56 AM by Bill Burke

    Online weaving Ant task

    André Dantas Rocha Newbie

      I am not crazy ?!



      * @ejb.value-object
       * name="Customer"
       * match="*"
       *
       * @ejb.value-object
       * name="CustomerLight"
       * match="light"
       */
      public abstract class CustomerEJB implements EntityBean {
      
      ...
      
      /**
       * @ejb.interface-method
       */
       public abstract CustomerValue getCustomerValue();
      
       /**
       * @ejb.interface-method
       */
       public abstract CustomerLightValue getCustomerLightValue();
      
       /**
       * @ejb.interface-method
       */
       public abstract void setCustomerValue(CustomerValue value);


      This code snippet from xdoclet example doesn't imply any CMP(ejb.persistence ?) or CMR(ejb.relation ?) fields. And this example reflects exactly what I want : get the value object of the entity bean itself.

      When I look at the code snippet given as example in SourceForge for the Value Object tag, I can see that each getter and setter pairs are defined as CMP or CMR fields.


      Yes, for the persistent fields but not for the three last methods given before.

      The error says that the getLanguageValue method do not correspond to a CMP or a CMR field, which is the case in your code.


      I know the signification of the exception but regarding the xdoclet example I have just to define this abstract methods.

      I never use the value object pattern, and of course the Xdoclet tag.


      If you don't use value object, how do you get the values of your entity beans in your views(JSP, etc...) ?

      Thanks.