Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF/Teneo/Hibernate] "transient" emf model
[EMF/Teneo/Hibernate] "transient" emf model [message #504353] Fri, 18 December 2009 13:27 Go to next message
Roman Flückiger is currently offline Roman FlückigerFriend
Messages: 1
Registered: December 2009
Junior Member
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
Re: [EMF/Teneo/Hibernate] "transient" emf model [message #504388 is a reply to message #504353] Fri, 18 December 2009 15:57 Go to previous message
Martin Taal is currently offline Martin TaalFriend
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
Previous Topic:Error validating and converting Ecore model
Next Topic:Deleting a resource with containment reference to another resource
Goto Forum:
  


Current Time: Thu Apr 25 20:31:26 GMT 2024

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

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

Back to the top