Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8103877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:40:34+00:00 2026-06-05T23:40:34+00:00

I have hibernate configured to print out the sql statements that it generates and

  • 0

I have hibernate configured to print out the sql statements that it generates and i have a background task that runs every 10 seconds which uses hibernate and ends up printing out the same sql statement again and again … etc.

Is there a way to configure hibernate to print out sql statements but only print each statement once and ignore printing it out in the future?

update: It seems there is no way to configure this in hibernate, I ended up using the Spring JDBC for this frequently executing query to avoid the query being printed to the console, every 10 seconds during development. I will keep this question open in case some one figure out an easy way to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T23:40:36+00:00Added an answer on June 5, 2026 at 11:40 pm

    you could implement your own log4net.Appender.IAppender which uses a set to determine if it already printed it or not

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hibernate that is configured only programmatically ( I don't have a
I have configured NHibernate to output the SQL it generates to the console. I
We have an object, A, which contains another object, B. We have Hibernate calling
I have a Hibernate mapping that looks something like this: <class name=MyEntity> <set name=scalarSet
I have a hibernate object that gets detached and transferred to a thick java
I have a Spring/JPA application with Hibernate as the JPA provider. I've configured a
I have configured the SimpleMappingExceptionResolver in my web application, which is handling all the
I have a c# library project, that i configured using nhibernate, and I like
I have an application that is using Hibernate 3, c3p0, and spring 2.5.6. We
I have a spring bean that I have configured in applicationContext like below: <bean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.