Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322033 - JPA2: Metamodel requires transient superclass testing to verify the BasicType attributes are not inherited
Summary: JPA2: Metamodel requires transient superclass testing to verify the BasicType...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: 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: 2010-08-06 17:32 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:21 EDT (History)
1 user (show)

See Also:
michael.f.obrien: documentation+


Attachments
Metamodel transient root testing (12.58 KB, patch)
2010-08-09 11:02 EDT, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2010-08-06 17:32:46 EDT
>Since a non-Entity, non-MappedSuperclass (un-annotated) POJO that is the root of a JPA Hierarchy is a transient - it does not contribute persistent fields
- add specific testing for the fact that it comes in as a BasicType (no attributes outside its use in pure Java)
- add specific testing that expected IllegalArgumentExceptions are thrown when any attribute access is attempted on fields that would have been inherited.
Comment 1 Michael OBrien CLA 2010-08-09 11:02:50 EDT
Created attachment 176162 [details]
Metamodel transient root testing
Comment 2 Michael OBrien CLA 2010-08-09 11:44:13 EDT
>see SVN rev# 8006
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=8006
bug 322018: Encapsulation - reduce scope of remaining protected Metamodel instance variables to private
https://bugs.eclipse.org/bugs/attachment.cgi?id=176058&action=diff
bug 322033: Metamodel transient superclass as BasicType testing for non-inheritance of attributes
https://bugs.eclipse.org/bugs/attachment.cgi?id=176162&action=diff
<testsuite errors="0" failures="0" hostname="xps435" name="org.eclipse.persistence.testing.tests.jpa.AllCMP3TestRunModel" tests="2235" time="1200.919" timestamp="2010-08-09T15:09:20">
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:16:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:21:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink