-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Newbie question - using Hibernate to detect database changes
PostPosted: Wed Jul 21, 2010 11:20 am 
Newbie

Joined: Wed Aug 29, 2007 10:42 am
Posts: 2
I'm trying to check whether Hibernate would support the following scenario :-

I have a standard application that I'm using Hibernate with to manage the persistence layer (a MySQL database). So all CRUD operations from my application are done via Hibernate. However, there are other clients to the database (e.g. users using an SQL query tool session, .NET clients etc).

Is there any way to be alerted to changes in the database (e.g. a new row written via a native MySQL query) at the Hibernate layer ? I've started to read up on listeners but any advice much appreciated !


Top
 Profile  
 
 Post subject: Re: Newbie question - using Hibernate to detect database changes
PostPosted: Wed Jul 21, 2010 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
no the database is not going to raise any event to Hibernate, the built-in listeners are meant to listen to hibernate events not to external changes.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.