Results 1 to 2 of 2
  1. #1
    stsivaraj is offline Member
    Join Date
    Nov 2010
    Posts
    15
    Rep Power
    0

    Question Is there any hibernate listener to handle any updates in db?

    Hi,
    I am using Hibernate3.2 and i have to get the task updation count with using big query. The task updation happen periodically in background. When i fetch the count at first time from database its taking long time. Second time pretty fast due to cache. If any updation happen in database thrid time its take long time.

    Is there any hibernate listener to handle any updates in database by any other server?

    Is there any way to find the updation happen or not without hitting the databse? I can match the existing count and database's current count programatically.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default Re: Is there any hibernate listener to handle any updates in db?

    No, Hibernate does not have any such "listening" capability. You have to run the query periodically and see if the results change.
    The Java Tutorial. Read it.

Similar Threads

  1. Replies: 1
    Last Post: 10-29-2012, 10:49 AM
  2. Replies: 2
    Last Post: 12-11-2011, 11:44 PM
  3. Check For Updates
    By anthropamorphic in forum New To Java
    Replies: 6
    Last Post: 09-26-2011, 05:43 AM
  4. Replies: 0
    Last Post: 06-05-2011, 08:43 PM
  5. Java JDK updates on Mac?
    By QualityControl in forum New To Java
    Replies: 4
    Last Post: 03-24-2010, 05:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •