I'm not sure you've really understood my problem (i'm not sure it was clearly explained :))

Generating a method by adding the @ejb.interface works fine.
On the other hand all methods tagged by @ejb.persistence or @ejb.relation are not added to the interfaces. I guess it's the default behavior.

If you tag these methods with the both tags, nothing is added to the interfaces as well.
What i'm looking for, is a way to add these methods to the interfaces (remote or not). To resume, 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);
}

Is it really what you have understood about my needs?



[EMAIL PROTECTED] wrote:
On Wednesday 13 Aug 2003 07:57, Jean-philippe VIGNIEL wrote:
  
Thanks  for your answer.
I think i've not correcltly explained what i want to do. I would like to
add persistent members accessors  of an entity bean to its interface.

I've already tried to add the ejb.interface-method to a persistent
member definition, but it doesn't work. Indeed, if I write the following
code

class ABean {

 /**
      * @ejb.interface-method
      * @ejb.persistence
      *
      * */
    public abstract String getId();
    public abstract void setId(String id);
}

The  getId and setId methods are not added to the A or ALocal interfaces.

Any idea to do that?
    

The 
view-type="local"
parameter on the @ejb.interface-method specifies to add it to the Local 
interface only - make sure you have that local specified. The default is 
"remote"


  

Reply via email to