Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370262 - @ElementCollection annotation not supported by Teneo
Summary: @ElementCollection annotation not supported by Teneo
Status: RESOLVED WONTFIX
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 13:42 EST by Kevin Page CLA
Modified: 2012-01-31 15:13 EST (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 Kevin Page CLA 2012-01-31 13:42:22 EST
Build Identifier: 1.2.0.v201107080556

It looks like the @ElementCollection annotation is not recognized by Teneo.  Attempting to use it generates the following stack trace on XSD import.  I couldn't find a reference to this being unsupported in the documentation, is this a bug?

org.eclipse.emf.teneo.annotations.parser.AnnotationParserException: No eclass found with name ElementCollection
	at org.eclipse.emf.teneo.annotations.parser.ComplexNode.convert(ComplexNode.java:72)
	at org.eclipse.emf.teneo.annotations.parser.EAnnotationParserImporter.processAnnotatedModelElement(EAnnotationParserImporter.java:119)
	at org.eclipse.emf.teneo.annotations.parser.EAnnotationParserImporter.process(EAnnotationParserImporter.java:87)
	at org.eclipse.emf.teneo.annotations.parser.EAnnotationParserImporter.process(EAnnotationParserImporter.java:76)
	at org.eclipse.emf.teneo.annotations.parser.EAnnotationParserImporter.process(EAnnotationParserImporter.java:68)
	at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingBuilder.buildMapping(PersistenceMappingBuilder.java:142)
	at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingBuilder.buildMapping(PersistenceMappingBuilder.java:73)
	at org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbDataStore.java:1025)
	at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel(HbSessionDataStore.java:192)
	at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initialize(HbSessionDataStore.java:98)



Reproducible: Always

Steps to Reproduce:
1. Create an XSD with the @ElementCollection JPA annotation on an element
2. Import the XSD
Comment 1 Martin Taal CLA 2012-01-31 15:13:24 EST
Afaik ElementCollection is a jpa 2.0 construct. Teneo supports the Jpa 1.0 spec:
http://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Annotations_Support

Currently I spent more of my time on the Texo project which works with jpa 2.0:
http://wiki.eclipse.org/Texo

This means that I won't expect Teneo to support jpa 2.0 unless this is sponsored by someone, the work would be about one manmonth.

So I will close this feature request for now. 

You can open a feature request to support full jpa 2.0, then maybe there are several parties interested in supporting/sponsoring jpa 2.0 support. I can even consider posting something in a blog and on the forum, to see if there is interest (although it could be limited if real money has to be paid...).

gr. Martin