Hi XDoclet users,

maybe some of you have the same problem. I'm using Xdoclet and Middlegen to generate 
my EJB source skeletons from my database.
Since I want every single EJB to inherit a common superclass with logging 
capabilities, I have hacked the code template in Middlegen so as it generates CMP 
EntityBean like this :

public abstract class $table.destinationClassName extends 
dk.steria.nes.midtier.BaseEntityBean 

instead of the default template 

public abstract class $table.destinationClassName implements javax.ejb.EntityBean 

The problem is when I try to run XDoclet on the first type of Bean class, it simply 
ignores all of them and does not generate anything, even though the 
dk.steria.nes.midtier.BaseEntityBean does implement the javax.ejb.EntityBean !!!!
How can I force XDoclet to consider my classes as EJB classes ?

By the way, my second question concerns the xxxCMP.java files generated by the 
<entitycmp/> tag. It seems that those classes implements methods of the EntityBean 
interface and also handles the value object feature. In fact, I'd like to get rid of 
those classes since my BaseEntityBean implements all the required methods. 
How am I supposed to tell XDoclet to generate the value object feature inside my Bean 
class instead of adding an xxxCMP Helper class ?

So, has any XDoclet guru achiveved this ? I can't find any help in the documentation.

I will appreciate any idea.

Regards,

Gregory
�+�zf��+,��좷�o'�k!�y�]y�l�z~'��!��h�*'x����'$��ކ�i���}���bj�^��&��rO��]u����^�����n���j)b�
        
b��]��^���X���(��~��zw���i����l���q���z���l�X��)ߣ�]��^��

Reply via email to