db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JDO-667) Extend PersistenceManageFactory to return all known entity classes
Date Fri, 01 Jul 2011 16:24:28 GMT

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

Michael Bouschen commented on JDO-667:
--------------------------------------

I agree getMetadata sounds like the right permission.

I think we need a spec update and a tck test.

> Extend PersistenceManageFactory to return all known entity classes
> ------------------------------------------------------------------
>
>                 Key: JDO-667
>                 URL: https://issues.apache.org/jira/browse/JDO-667
>             Project: JDO
>          Issue Type: New Feature
>          Components: api, specification, tck
>    Affects Versions: JDO 3
>            Reporter: Marco
>             Fix For: JDO 3 maintenance release 1
>
>
> JDO 3 now has the ability to declare meta-data programmatically. Part of this feature
is the ability to ask the PersistenceManagerFactory via the method getMetadata(java.lang.String)
for the meta-data of one single class. But there is no way to list all known classes.
> I therefore kindly ask for a new method in PersistenceManagerFactory like this:
> Collection<String> getClassesWithMetadata();
> Btw., this is Andy's suggestion posted here: http://www.datanucleus.org/servlet/forum/viewthread_thread,6379#33224
> I'd greatly appreciate, if this method became a part of JDO 3.1.
> Edit 1: I just saw the various overloaded methods getManagedObjects(...) in PersistenceManager
- maybe the alternative method name "getManagedClasses()" would be more consistent?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message