Title: Re: [Xdoclet-user] Specifying a remove method on the home interface?
Hi,
 
so you don't mean the (ejb)Remove() method in the local or remote interface but a new
'remove()' in the home interface (in which the (ejb)create() also resides)?
 
If so, you might try:
 
 
...
/**
 * @ejb.home-method
 */
public type ejbHomeRemove(...) {

Von: [EMAIL PROTECTED] im Auftrag von Bruno Beloff
Gesendet: Sa 08.05.2004 09:48
An: [EMAIL PROTECTED]
Betreff: Re: [Xdoclet-user] Specifying a remove method on the home interface?


Thank you very much for the message, but as things are set up, it seems 
that remove is not generated.  My generated home interface looks like 
this - with no remove.    In my application, some of my CMP EJBs need 
to expose a remove method, others must not.  I don't see how to control 
this.

public interface DiscountLocalHome
    extends javax.ejb.EJBLocalHome
{
    public static final String 
COMP_NAME="java:comp/env/ejb/DiscountLocal";
    public static final String JNDI_NAME="DiscountLocal";

    public biz.classcalendar.entity.discount.DiscountLocal 
create(biz.classcalendar.entity.discount.DiscountVO disVO)
       throws 
biz.classcalendar.entity.util.InvalidValueException,biz.classcalendar.en
tity.util.DuplicateValueException,javax.ejb.CreateException;

    public biz.classcalendar.entity.discount.DiscountLocal 
findByPrimaryKey(java.lang.String id)
       throws javax.ejb.FinderException;

    public biz.classcalendar.entity.discount.DiscountLocal 
findByDay(java.lang.Integer day)
       throws javax.ejb.FinderException;

    public java.util.Collection findAll()
       throws javax.ejb.FinderException;

}


On 7 May 2004, at 20:26, Harkness, David wrote:

> Bruno Beloff wrote:
>> A simple question: how do I use XDoclet to create a
>>
>>      public void remove (java.lang.String id)
>>
>> method on the generated home interface of my entity EJB?
>>
>> /**
>>   * @ejb.bean
>>   *          ...
>>   *          primkey-field = "id"
>
> EJBHome and EJBLocalHome already define
>
>   public void remove ( java.lang.Object pk )
>
> for you, and the container will generate the implementation.
>
> David Harkness
> Sr. Software Engineer
> Sony Pictures Digital Networks
> (310) 482-4756



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to