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

Bug 339043

Summary: Incorrect handling for the type xsd:time
Product: [Modeling] EMF Reporter: Nikita <d.nikita.e>
Component: TeneoAssignee: Martin Taal <mtaal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nikita CLA 2011-03-06 16:50:18 EST
Build Identifier: 1.2.0.v201102272039

If I define a type using XSD with a field of type "xsd:time", mapping this type using Teneo has the following behavior:
 * On MySQL, without any annotations, the resulting JDBC type of the column is Types.DATE.
 * On Oracle, without any annotations, the resulting JDBC type of the column is Types.TIMESTAMP (probably ok?).
 * Using the annotation @Temporal(TemporalType.TIME) results in an exception: java.lang.ClassCastException: org.eclipse.emf.ecore.xml.type.internal.XMLCalendar cannot be cast to java.util.Date

Reproducible: Always

Steps to Reproduce:
Test cases to reproduce the issue are in Assmbla.
Comment 1 Martin Taal CLA 2011-03-17 05:24:28 EDT
Fix committed to cvs
Comment 2 Martin Taal CLA 2011-03-17 06:23:02 EDT
Available in latest build