db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-507) Completeness test for persistent interface fails with annotations
Date Thu, 05 Jul 2007 07:46:04 GMT

    [ https://issues.apache.org/jira/browse/JDO-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510306
] 

Andy Jefferson commented on JDO-507:
------------------------------------

> I just added Property[ ] properties() to @Embedded. Doesn't seem to help ;-)

No reason that it would since we (currently) interpret @Embedded "fields" as the properties
to be embedded (in the absence of a separate "properties") and dont process some "properties"
annotation element that didnt exist ;-)


Why does PICompany extend ICompany ? (same comment applies to all PIXXX classes). If the test
is to be a straight copy of "companyPMInterface.conf" but using annotations then it should
be a straight interface with no extend of some other persistent interface that already declared
methods persistent using XML. If it is to be a test of XML+annotations then it should at least
attempt to override something (IMHO)

>  Completeness test for persistent interface fails with annotations
> ------------------------------------------------------------------
>
>                 Key: JDO-507
>                 URL: https://issues.apache.org/jira/browse/JDO-507
>             Project: JDO
>          Issue Type: Task
>          Components: tck2
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michelle Caisse
>
> Annotations on persistent interfaces have not yet been implemented by jpox. I have added
the test to configurations.list, so it gets run on any complete test run, but I have not yet
added the classes to the list of jdo metadata files in project.properties because that causes
enhancement to fail. Therefore, the test currently gives the following error: 
>     [java] Class org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany has field org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany.address
declared in MetaData, but this field doesnt exist in the class!
>     [java] org.jpox.metadata.InvalidMetaDataException: Class org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany
has field org.apache.jdo.tck.pc.companyAnnotatedDS.PICompany.address declared in MetaData,
but this field doesnt exist in the cl
> ass!
> ...
> When the feature is implemented, project.properties must be edited to include PI*.class
in the list for enhancement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message