This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 288267 - JPA2: PFD2 20090831 specification changes to javax.persistence.metamodel
Summary: JPA2: PFD2 20090831 specification changes to javax.persistence.metamodel
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on: 266912
Blocks:
  Show dependency tree
 
Reported: 2009-09-01 10:41 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2009-09-01 10:41:17 EDT
The following changes need to be made to
<trunk>\jpa\plugins\javax.persistence\src\javax\persistence\metamodel

See the 20090831 jar
>Metamodel changes :
The only code changes are ManagedType.get*Collections to get*PluralAttributes

IdentifiableType
- getDeclaredId and getVersion - switched places - no update required

ManagedType
- added javadoc
"     *  Returns empty set if the managed type has no declared
     *  attributes."
- reordered
    <E> CollectionAttribute<X, E> getDeclaredCollection(String name, Class<E> elementType);
    <E> SetAttribute<X, E> getDeclaredSet(String name, Class<E> elementType);
    <E> ListAttribute<X, E> getDeclaredList(String name, Class<E> elementType);

- changed javadoc "Collection" to "multi-valued"
     *  Return all collection-valued attributes of the managed type.
     *  @return collection valued attributes
changed to
     *  Return all multi-valued attributes (Collection-, Set-,
     *  List-, and Map-valued attributes) of the managed type.
     *  Returns empty set if the managed type has no multi-valued
     *  attributes.
     *  @return Collection-, Set-, List-, and Map-valued attributes
     */

- function change to the more clear
    java.util.Set<PluralAttribute<? super X, ?, ?>> getCollections();
    java.util.Set<PluralAttribute<X, ?, ?>> getDeclaredCollections();
to
    java.util.Set<PluralAttribute<? super X, ?, ?>> getPluralAttributes();
    java.util.Set<PluralAttribute<X, ?, ?>> getDeclaredPluralAttributes();


Metamodel
     * Return the metamodel embeddable types.
changed to
     * Return the metamodel embeddable types.  Returns empty set if
     * there are no embeddable types.
Comment 1 Michael OBrien CLA 2009-09-10 11:11:56 EDT
>Add metamodel package changes to correspond criteria API updates for PFD2 in rev# 5088
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=5088
Comment 2 Michael OBrien CLA 2009-09-21 16:25:31 EDT
>checked in by Peter in SVN Rev# 5187 - verified ManagedTypeImpl changes.
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=5187
Comment 3 Michael OBrien CLA 2009-09-21 16:25:57 EDT
>see 5187
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:17:01 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:28:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink