Hi Sebastien, would you please enter this issue into
JIRA?
( go to SF bugs page, there is a link )

I will take on it today...

regards,
--- Sebastien BLANC <[EMAIL PROTECTED]>
wrote:
> Hello !
> 
> having EJB A class with a composite ScopedAid
> primary key, I specify the
> following in A:
> 
> * @ejb:pk
>
class="com.alcatel.gem.ejb.tl1.entity.interfaces.ScopedAid"
> 
> and the relevant * @ejb:pk-field (s)
> 
> I get the correct generated class from xdoclet.
> 
> having B class inheriting from A, I specify the
> following:
> 
>  * @ejb:pk
>  *  generate="false"
>  * 
>
class="com.alcatel.gem.ejb.tl1.entity.interfaces.ScopedAid"
> 
> to be able to re-use the same primary key class for
> the inherited beans,
> and get the following compilation error:
> 
>     [javac]
>
C:\Data\EJB\generated\ejb-jar-tl1-Equipment\com\alcatel\gem\ejb\tl1\Equipment\interfaces\EQHData.java:55:
> cannot resolve symbol
>     [javac] symbol  : class ScopedAid
>     [javac] location: class
> com.alcatel.gem.ejb.tl1.Equipment.interfaces.EQHData
>     [javac]      ScopedAid pk = new
> ScopedAid(this.getAid(),this.getTid());
> 
> becoz the generated BData code is the following:
> 
>    public
> com.alcatel.gem.ejb.tl1.entity.interfaces.ScopedAid
> getPrimaryKey() {
>      ScopedAid pk = new
> ScopedAid(this.getAid(),this.getTid());
>      return pk;
>    }
> 
> which will only work if A and B were in the same
> package.
> 
> let me know if u need me to submit a 'defect/change
> request' to be able
> to get the generation with full prefixation of
> java PK packages or - simpler - having the
> generation of the java import
> specified into @ejb:pk class in the generated Data.
> 
> this is applicable to any generation of Data class
> (even A).
> 
> thank you.
> 
> seb.
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to