Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311856

Summary: WDF test TestPersist and TestMerge use non-entity subclass
Product: z_Archived Reporter: Adrian Goerler <adrian.goerler>
Component: EclipselinkAssignee: Adrian Goerler <adrian.goerler>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: eclipselink.orm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
URL: http://wiki.eclipse.org/Talk:EclipseLink/Bugs/309681#testNastyTimestampTwice
Whiteboard: test simple_fix
Bug Depends on:    
Bug Blocks: 309681    

Description Adrian Goerler CLA 2010-05-06 07:25:33 EDT
The tests 

jpa/eclipselink.jpa.wdf.test
  org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager
     TestPersist and TestMerge

use the non-entity subclass "NastyTimestamp". EclipseLink does not support non-entity subclasses.
Comment 1 Adrian Goerler CLA 2010-05-06 07:45:55 EDT
changed the following:
- removed entiy "NastyTimestamp" 
- created new entity "Nasty" which is no non-entity subclass
- changed TestPersist and TestMerge to use entity "Nasty" instead of "NastyTimestamp"
- made the test methods testNastyTimestampTwice[NotIntial] more tolerant so that a failing commit is also OK for the test

tests on MySQL -> OK (besides 7 known issues)

checked in at 7170
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:02:43 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink