Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo: refresh data from DB
Teneo: refresh data from DB [message #79166] Tue, 10 April 2007 13:51 Go to next message
Eclipse UserFriend
Originally posted by: mat.loo.gmail.com

Hi again,

Is there an easy way to get synchronized with the DB ?
That is, to get last data put into the DB by other users ?

Thx
Re: Teneo: refresh data from DB [message #79182 is a reply to message #79166] Tue, 10 April 2007 13:55 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
You can refresh the state of an object (see the hibernate manual for more info).

gr. Martin

Mat Lo wrote:
> Hi again,
>
> Is there an easy way to get synchronized with the DB ?
> That is, to get last data put into the DB by other users ?
>
> Thx
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: refresh data from DB [message #79210 is a reply to message #79182] Tue, 10 April 2007 14:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mat.loo.gmail.com

Thx Martin.

I found what I needed in Hibernate manual (on the Session object, I call
refresh(EObject) and everything works fine).

But is there not a way to use "Teneo", I mean Hibernate or JPox
transparently.

Thx again
Re: Teneo: refresh data from DB [message #79222 is a reply to message #79210] Tue, 10 April 2007 14:39 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I see what you mean, no there is currently no orm-transparent way.

Btw, it could make sense to have a refresh option on a resource but that is probably a fair amount
of work (I mean synchronising the whole resource with the backend database). If this is an
interesting feature then please enter a bugzilla. Although, I won't have time to look at this in the
short/mid term (months), so if anyone wants to contribute here then they are (very) welcome.

gr. Martin

Mat Lo wrote:
> Thx Martin.
>
> I found what I needed in Hibernate manual (on the Session object, I call
> refresh(EObject) and everything works fine).
>
> But is there not a way to use "Teneo", I mean Hibernate or JPox
> transparently.
>
> Thx again
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: refresh data from DB [message #604559 is a reply to message #79166] Tue, 10 April 2007 13:55 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
You can refresh the state of an object (see the hibernate manual for more info).

gr. Martin

Mat Lo wrote:
> Hi again,
>
> Is there an easy way to get synchronized with the DB ?
> That is, to get last data put into the DB by other users ?
>
> Thx
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: refresh data from DB [message #604567 is a reply to message #79182] Tue, 10 April 2007 14:27 Go to previous message
Eclipse UserFriend
Originally posted by: mat.loo.gmail.com

Thx Martin.

I found what I needed in Hibernate manual (on the Session object, I call
refresh(EObject) and everything works fine).

But is there not a way to use "Teneo", I mean Hibernate or JPox
transparently.

Thx again
Re: Teneo: refresh data from DB [message #604570 is a reply to message #79210] Tue, 10 April 2007 14:39 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I see what you mean, no there is currently no orm-transparent way.

Btw, it could make sense to have a refresh option on a resource but that is probably a fair amount
of work (I mean synchronising the whole resource with the backend database). If this is an
interesting feature then please enter a bugzilla. Although, I won't have time to look at this in the
short/mid term (months), so if anyone wants to contribute here then they are (very) welcome.

gr. Martin

Mat Lo wrote:
> Thx Martin.
>
> I found what I needed in Hibernate manual (on the Session object, I call
> refresh(EObject) and everything works fine).
>
> But is there not a way to use "Teneo", I mean Hibernate or JPox
> transparently.
>
> Thx again
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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:Teneo: getChoiceOfValues(Object object) very long...
Next Topic:[Teneo] single ref table for many-to-many
Goto Forum:
  


Current Time: Sat Oct 31 05:28:34 GMT 2020

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

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

Back to the top