[XDoclet-JIRA] Commented: (XDT-1662) Superclass constructor not generated on PK class when EJB extends another EJB
"Martin West (JIRA)" <[email protected]> Wed, 27 Sep 2006 05:30:58 -0500 (CDT)
| Newsgroups | gmane.comp.java.xdoclet.devel |
|---|---|
| Message-ID | <136992362.1159353058154.JavaMail.j2ee@atlassian01.managed.contegix.com> |
[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1662?page=comments#action_17690 ]
Martin West commented on XDT-1662:
----------------------------------
K, I created a entitypk-custom.xdt ...
// entitypk-custom.xdt merge <XDtClass:classOf><XDtEjbPk:pkClass/></XDtClass:classOf>.merge
<XDtMerge:merge file="<XDtClass:classOf><XDtEjbPk:pkClass/></XDtClass:classOf>.merge">
</XDtMerge:merge>
and put the missing constructor in the merge file
> 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
> Assignee: 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