Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [ECORE/Teneo] Persistence clarification
[ECORE/Teneo] Persistence clarification [message #916440] Wed, 19 September 2012 02:41 Go to next message
Appasamy Thirugnana is currently offline Appasamy ThirugnanaFriend
Messages: 27
Registered: September 2012
Junior Member
Hi Everyone,

My requirement is as below:

I will be provided an ECORE model(file) as input in run time and I need to persist instances of it in database in run time with the values provided.

I am planning to use Teneo to persist using hibernate. I don't want to do code generation from ECORE. I need to dynamically create EClasses out of ECORE and use it for persistence.

I have downloaded Teneo and gone thru Tutorial.java and ReadEcore.java.

Can someone point me where I can exactly find the way to achieve my requirement.

Thanks.

Appasamy







Re: [ECORE/Teneo] Persistence clarification [message #916459 is a reply to message #916440] Wed, 19 September 2012 03:21 Go to previous message
Appasamy Thirugnana is currently offline Appasamy ThirugnanaFriend
Messages: 27
Registered: September 2012
Junior Member
I found it. We need to use dynamic EMF for this.

EClass e = (EClass) epack.getEClassifier("Library");

Thanks.
Previous Topic:[CDO] experience with huge data amount
Next Topic:properties view sync with multiple tree viewer
Goto Forum:
  


Current Time: Thu Nov 27 07:23:32 GMT 2014

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

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