Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo + EclipseLink simple complete example
Teneo + EclipseLink simple complete example [message #621090] Mon, 06 July 2009 14:30
Antonel Ernest Pazargic is currently offline Antonel Ernest PazargicFriend
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.
Previous Topic:WorkspaceSynchronizer.Delegate [newbie]
Next Topic:[Teneo] NPE in PersistentStoreAdapter
Goto Forum:
  


Current Time: Thu Feb 22 18:11:33 GMT 2024

Powered by FUDForum. Page generated in 0.02313 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top