| Summary: | JPA2: Metamodel requires transient superclass testing to verify the BasicType attributes are not inherited | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael OBrien <michael.f.obrien> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P2 | CC: | eclipselink.orm-inbox | ||||
| Version: | unspecified | Flags: | michael.f.obrien:
documentation+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| URL: | http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_42:_20090709:_IdentifiableType.supertype_-_what_do_top-level_types_set_it_to | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 266912 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
Created attachment 176162 [details]
Metamodel transient root testing
>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"> The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
>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.