On Wed, 2003-08-13 at 10:48, Jean-philippe VIGNIEL wrote:
> i want to write 
> 
> class ABean{
> 
>     /**
>     /* @ejb.persistence
>     /*   
>     **/
>     public abstract String getId();
>    public abstract void setId(String id);
> }
> 
> and have as result
>  
> interface A {
>       String getId();
>     void setId(String id);
> }
> or 
> interface ALocal {
>       String getId();
>     void setId(String id);
> }

Here's one possibility - merge points.  You could use the
local-custom.xdt and remote-custom.xdt merge points (documented on the 
localinterface and remoteinterface pages of the web site) to add in some
template code to do whatever you want.  e.g.

<XDtEjbPersistent:forAllPersistentFields>
   public <XDtMethod:methodType/> <XDtMethod:getterMethod/>()
     throws java.rmi.RemoteException;
</XDtEjbPersistent:forAllPersistentFields>
<XDtEjbPersistent:forAllPersistentFields not-pk="true">
   public void <XDtMethod:setterMethod/>( <XDtMethod:methodType/>  
     <XDtMethod:propertyName/> ) throws java.rmi.RemoteException;
</XDtEjbPersistent:forAllPersistentFields>

You'll have to make sure you don't include any @ejb.interface-method
tags on the getters & setters, though, otherwise you'll get duplicate
methods in the generated code and it won't compile...


Andrew.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to