Superclass constructor not generated on PK class when EJB extends another EJB
-----------------------------------------------------------------------------

         Key: XDT-1662
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1662
     Project: XDoclet
        Type: Bug

  Components: EJB Module  
    Versions: 1.2.3    
 Environment: Windows
    Reporter: Martin West
 Assigned to: xdoclet-devel (Use for new issues) 


If I have OneEJB and this is extended by TwoEJB the generated code looks like

============ snippet One =============
/**
 * Primary key for One.
 */
public class OnePK
   extends java.lang.Object
   implements java.io.Serializable
{

   public long oid;

   public One()
   {
   }

   public OnePK( long oid )
   {
      this.oid = oid;
   }
======================================================

====================== snippet Two =======================

/**
 * Primary key for Two.
 */
public class TwoPK
   extends OnePK
   implements java.io.Serializable
{

   public TwoPK()
   {
   }

=================================================================================

There is no constructor

public Two( long oid ) {
  super(oid);
}

when the OneEJB is in a jar file, ie dont have access to the source.

Ive googled the problem and searched this bug system, looked in the 
documentation but I cant find anything which would encourage the generator to 
generate the missing constructor.

I suppose I could use merge but it would be nicer if it was generated.

Thanks 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to