Menu

#89 Duplicate method in inherited home i/f

closed-duplicate
nobody
None
5
2002-03-08
2002-02-18
No

I have a finder method findAll defined in the base
interface for our home interfaces. An @ejb:finder tag
is then defined for this method in each bean. The
finder tag is there so that the bean-specifc ejb-ql,
is inserted into the xml files. However, the generated
home interface then overrides the findAll method.

This situation then confuses weblogic ejbc when it
tries to generate the implementations for the home
interface, it winds up with two indentical
implementations for the findAll method. (Which causes
a compiler error when trying to compile the generated
implementations).

Ejbc is happy if I manually remove the overriden
method from the generated Home i/f before running it
on them.

I am using CMP2.0, EJB spec 2.0.
And, the bean classes themselves are generated
directly from a database.

Attached is the code for the parent home interface,
and the class tags from the bean class.

Discussion

  • Clinton West

    Clinton West - 2002-02-18

    Parent home i/f + bean class tags

     
  • Clinton West

    Clinton West - 2002-02-18
    • status: open --> closed
     
  • Andy Stevens

    Andy Stevens - 2002-03-08

    Logged In: YES
    user_id=247081

    Duplicate of #519011

     
  • Andy Stevens

    Andy Stevens - 2002-03-08
    • status: closed --> closed-duplicate
     

Log in to post a comment.