|
Re: [EMF/Teneo/Hibernate] "transient" emf model [message #504388 is a reply to message #504353] |
Fri, 18 December 2009 15:57 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Roman,
You can set the @Transient annotation on:
- an EClass: then instances of the EClass will not be mapped to hibernate, ereferences to this EClass will also be
considered as transient and are not mapped
- an EStructuralFeature: in this case the efeature is not mapped.
gr. Martiin
Roman Fl wrote:
> Hi there,
>
> I'm working on a client/server rcp application, using emf, teneo,
> hibernate.
> What I wish for is a persistent emf model, that has a one-to-many
> reference to a non-peristent emf-object... the non-persistent object
> will be created on the server-side when necessary and "shipped" to the
> client attached to its container, therefore it needs to be serialized by
> emf... which is way emf/jpa transient annotations won't solve my
> problems...
>
> Is there a way of somehow telling teneo via annotations to not generate
> hibernate mappings for specific objects/references? Or how are these
> problems usually solved?
>
> Thanks,
> Roman
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03292 seconds