#313 dataobject template error with pkClass

closed
nobody
None
5
2002-10-21
2002-10-15
No

This part of template produces unqualified class name
that generate compiler errors:

public <XDtEjbPk:pkClass/> getPrimaryKey() {

<XDtEjbPk:ifDoesntHavePrimkeyField>

<XDtClass:classOf><XDtEjbPk:pkClass/></XDtClass:classOf>
pk = new
<XDtClass:classOf><XDtEjbPk:pkClass/></XDtClass:classOf>(<XDtEjbPk:pkfieldListFrom
name="this"/>);

return pk;

...
}

it must be:

public <XDtEjbPk:pkClass/> getPrimaryKey() {

<XDtEjbPk:ifDoesntHavePrimkeyField>

<XDtEjbPk:pkClass/> pk = new
<XDtEjbPk:pkClass/>(<XDtEjbPk:pkfieldListFrom
name="this"/>);

return pk;

...
}

or an import statement inserted.

Discussion

  • Konstantin Pribluda

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks