Hi,

 

I have a problem with inherited entity beans.  Say, if I have the persistent field ‘id’ in my BaseEntityBean and then have other classes derive form it, the jaws.xml and the jbosscmp-jdbc.xml seem to be wrong.

 

The further I go down the tree of inherited objects the more the field id is shown:

 

i.e.:

 

      <entity>

         <ejb-name>Base</ejb-name>

 

         <cmp-field>

            <field-name>id</field-name>

                                    <column-name>id</column-name>

 

         </cmp-field>

 

      </entity>

 

---------à which is correct.

 

 

 

      <entity>

         <ejb-name>Profile</ejb-name>

 

         <cmp-field>

            <field-name>id</field-name>

                                    <column-name>id</column-name>

 

         </cmp-field>

         <cmp-field>

            <field-name>id</field-name>

                                    <column-name>id</column-name>

 

         </cmp-field>

      </entity>

 

---------à which is wrong because it contains the id field twice

 

 

If a class inherits from the ProfileBean then it will have 3 id fields in the xml files!  Am I doing something wrong here?  Any help on this would be appreciated!

 

Thanks,

 

Michael

 

Reply via email to