Teneo + EclipseLink simple complete example [message #621090] |
Mon, 06 July 2009 14:30 |
Antonel Ernest Pazargic Messages: 69 Registered: July 2009 |
Member |
|
|
Hi
I've tried to create (from scratch) a simple example project (EMF + Teneo
+ EclipseLink) but without success.
The issues I've faced are:
1. The Teneo > Generate ORM Files handler doesn't generate the orm:id tag
for id feature. For the moment I've modified the orm.xml to specify the id
for each entity.
2. One To Many references doesn't work. The thrown exception is:
Exception [EclipseLink-1] (Eclipse Persistence Services -
1.1.2.v20090612-r4475):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The attribute [books] is not declared as type
ValueHolderInterface, but its mapping uses indirection.
Mapping: org.eclipse.persistence.mappings.OneToManyMapping[books]
Descriptor:
RelationalDescriptor(ro.crito.medyna.model.library.impl.Libr aryImpl -->
[DatabaseTable(LIBRARY)])
I've certainly missed some configuration. Simple complete working example
and useful TENEO-JPA documentation links are very welcome.
I would prefer using JPA annotations in generated EMF model implementation
classes or generate orm.xml file via TENEO tool generator. I would like to
avoid TENEO JPA annotations in ecore file. Is that this possible?
10x a lot jtonic.
|
|
|
Powered by
FUDForum. Page generated in 0.03833 seconds