Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Teneo how to sei to Teneo to use my own eSet?(Teneo how to sei to Teneo to use my own eSet?)
Teneo how to sei to Teneo to use my own eSet? [message #759866] Wed, 30 November 2011 11:53 Go to next message
Jean-Louis  is currently offline Jean-Louis Friend
Messages: 18
Registered: October 2011
Junior Member
Hi!

How can i tell to Teneo to use my especific eSet likme myeSet and not the actual eSet generated by EMF?
I want to make this because i want to improve performance obtaining a clean eSet to avoid use eNotify.
It's possible?

Many thanks in advance
Re: Teneo how to sei to Teneo to use my own eSet? [message #759879 is a reply to message #759866] Wed, 30 November 2011 13:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
You can turn notification off.

On 30/11/2011 12:53 PM, Jean-Louis wrote:
> Hi!
>
> How can i tell to Teneo to use my especific eSet likme myeSet and not
> the actual eSet generated by EMF?
> I want to make this because i want to improve performance obtaining a
> clean eSet to avoid use eNotify.
> It's possible?
>
> Many thanks in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Teneo how to sei to Teneo to use my own eSet? [message #759895 is a reply to message #759879] Wed, 30 November 2011 13:50 Go to previous messageGo to next message
Jean-Louis  is currently offline Jean-Louis Friend
Messages: 18
Registered: October 2011
Junior Member
Hi Ed!

The problem is there are some above layers that are using thes enotifications.

Remember that if we want to use LazyLoading are supose not to know when the entities are loaded, hence, I don't want in runtime to be notified due to a database load into a Entitie.

There is some possibility to on/off this notifications in runtime? I can perhaps do a preload and postload to disable and enable notifications.

Re: Teneo how to sei to Teneo to use my own eSet? [message #759899 is a reply to message #759879] Wed, 30 November 2011 13:59 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Jean-Louis,
This seems to be a bug, I agree that if hibernate sets properties when loading entities that notifications should not be
fired. Can you enter a bugzilla for this? Then I will solve it in a next build.

gr. Martin

On 11/30/2011 02:08 PM, Ed Merks wrote:
> You can turn notification off.
>
> On 30/11/2011 12:53 PM, Jean-Louis wrote:
>> Hi!
>>
>> How can i tell to Teneo to use my especific eSet likme myeSet and not the actual eSet generated by EMF?
>> I want to make this because i want to improve performance obtaining a clean eSet to avoid use eNotify.
>> It's possible?
>>
>> Many thanks in advance


--

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
Re: Teneo how to sei to Teneo to use my own eSet? [message #759928 is a reply to message #759899] Wed, 30 November 2011 15:29 Go to previous messageGo to next message
Jean-Louis  is currently offline Jean-Louis Friend
Messages: 18
Registered: October 2011
Junior Member
Hi Martin Smile

Bugzilla #: Bug 365209

https://bugs.eclipse.org/bugs/show_bug.cgi?id=365209

Thanks!
Re: Teneo how to sei to Teneo to use my own eSet? [message #759936 is a reply to message #759899] Wed, 30 November 2011 15:45 Go to previous message
Jean-Louis  is currently offline Jean-Louis Friend
Messages: 18
Registered: October 2011
Junior Member
Just one more quick question martin! Smile

We have modified de emf generator to make this specific eSet call eSetBD:

public void eSetBD(int featureID, Object newValue) {
switch (featureID) {
case PessoaPackage.PESSOA__COR:
setDBCor((String)newValue);
return;
case PessoaPackage.PESSOA__TIPO:
setDBTipo((String)newValue);
return;
case PessoaPackage.PESSOA__NAME:
setDBName((String)newValue);
return;
case PessoaPackage.PESSOA__IDADE:
setDBIdade((Long)newValue);
return;
}

And then generated this specific method:

public void setDBCor(String newCor) {
cor = newCor ;
}

there are some easy way to teneo to use this specific generated methods (eSetBD...) and not the traditional eSet()? I'm just curious about this question _:)
Previous Topic:[CDO] caching server side issue.
Next Topic:Using ecore::EObject as reference type
Goto Forum:
  


Current Time: Sat Apr 20 02:52:27 GMT 2024

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

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

Back to the top