Community
Participate
Working Groups
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
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