Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] few questions for eval
[Teneo] few questions for eval [message #69079] Wed, 24 January 2007 00:10 Go to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I have Teneo working, and ready to eval with my model and application. I
have a couple of questions as I get started.

1. How do I turn off the debug output...it's very verbose.

2. Is it possible to "reload" objects in the case where one user
edits/modifies and then saves an object, or many objects. I need to be
able to reload so that all other users will see the changes...

Thanks,
Mark.
Re: [Teneo] few questions for eval [message #69103 is a reply to message #69079] Wed, 24 January 2007 09:31 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
1. Teneo uses commons-logging and log4j so I think you have set the log4j level to debug somewhere.
See also here:
http://www.elver.org/hibernate/troubleshooting.html#runtime
2. Hibernate has the refresh option
Assume you know which object changed then you can try something like this:
HibernateResource hbResource = (HibernateResource)resource;
Transaction tx = hbResource.getSession().beginTransaction();
hbResource.getSession().refresh(object);
tx.commit();
(transaction handling should be in a try-final block but ignoring this here for clarity)

Although you know this post I think it is also relevant here:
http://article.gmane.org/gmane.comp.java.emf.persistency/287

gr. Martin

Mark wrote:
> I have Teneo working, and ready to eval with my model and application. I
> have a couple of questions as I get started.
>
> 1. How do I turn off the debug output...it's very verbose.
>
> 2. Is it possible to "reload" objects in the case where one user
> edits/modifies and then saves an object, or many objects. I need to be
> able to reload so that all other users will see the changes...
>
> Thanks,
> Mark.
>



--

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] few questions for eval [message #601642 is a reply to message #69079] Wed, 24 January 2007 09:31 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
1. Teneo uses commons-logging and log4j so I think you have set the log4j level to debug somewhere.
See also here:
http://www.elver.org/hibernate/troubleshooting.html#runtime
2. Hibernate has the refresh option
Assume you know which object changed then you can try something like this:
HibernateResource hbResource = (HibernateResource)resource;
Transaction tx = hbResource.getSession().beginTransaction();
hbResource.getSession().refresh(object);
tx.commit();
(transaction handling should be in a try-final block but ignoring this here for clarity)

Although you know this post I think it is also relevant here:
http://article.gmane.org/gmane.comp.java.emf.persistency/287

gr. Martin

Mark wrote:
> I have Teneo working, and ready to eval with my model and application. I
> have a couple of questions as I get started.
>
> 1. How do I turn off the debug output...it's very verbose.
>
> 2. Is it possible to "reload" objects in the case where one user
> edits/modifies and then saves an object, or many objects. I need to be
> able to reload so that all other users will see the changes...
>
> Thanks,
> Mark.
>



--

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] few questions for eval
Next Topic:CDO - Duplicate of the 'xxx' for the key 1
Goto Forum:
  


Current Time: Thu Apr 25 21:55:44 GMT 2024

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

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

Back to the top