Been using 1.2.0 for around a year to generate Entity Bean interfaces, DDs, etc ...

however - I've been trying to upgrade to 1.2.x (tried 1.2.1 and 1.2.3) and using the newer versions
my ejb-jar.xml file seems to be written incorrectly - in that the entity bean <field-name> tags are written incorrectly...



previously

       <cmp-field >
          <description><![CDATA[Returns the vStockNo]]></description>
          <field-name>vStockNo</field-name>
       </cmp-field>

now

       <cmp-field >
          <description><![CDATA[Returns the vStockNo]]></description>
          <field-name>VStockNo</field-name>
       </cmp-field>


the methods in the bean (StockNumberBean) look like this :

  /**
   * @return the vStockNo
   * @ejb.interface-method view-type="local"
   * @ejb.persistent-field
   * @ejb.persistence column-name="vstockno"
   * @ejb.value-object match="light"
   */
  public abstract java.lang.String getVStockNo();

  /**
   * @param vStockNo the new vStockNo value
   * @ejb.interface-method view-type="local"
   */
  public abstract void setVStockNo(java.lang.String vStockNo);


the generated CMP class methods look like this :

 public abstract java.lang.String getVStockNo() ;

 public abstract void setVStockNo( java.lang.String VStockNo ) ;


the local interface looks like this :

 /**
  * Returns the vStockNo
  * @return the vStockNo
  */
 public java.lang.String getVStockNo(  ) ;

 /**
  * Sets the vStockNo
  * @param vStockNo the new vStockNo value
  */
 public void setVStockNo( java.lang.String vStockNo ) ;

the generated LightValue looks like this :

 public java.lang.String getVStockNo()
 {
    return this.VStockNo;
 }

 public void setVStockNo( java.lang.String VStockNo )
 {
    this.VStockNo = VStockNo;
    VStockNoHasBeenSet = true;

 }


I've had a little look at the xdt templates, and CVS, and it seems like the template ejb_body.xdt was deliberately changed :
http://cvs.sourceforge.net/viewcvs.py/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/dd/resources/ejb-body.xdt?r1=1.27&r2=1.28




but of course this now results in deployment errors for me !


anyone else had this problem ? found a solution ?


Many Thanks

--
Terry Paterson
Analyst/Programmer
Actual Systems UK Ltd



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to