Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2008, 01:11 PM
Member
 
Join Date: Apr 2008
Posts: 2
ajoshi is on a distinguished road
how to prevent autogenerated sqlstrings in hibernate ?
Hi , I am new to hibernate

I wish to know if anyone knows how to disable the sqlstrings generated by hibernate after reading the configuration files.

The problem is that in my case there are huge no of fields in some of the tables and the the generated sql select , update etc query Strings are itself holding a huge amount of memory.

So if anyone has any inputs do let me know.

Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-09-2008, 09:53 AM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Sql String
Hei,
In cfg file there is an option called, show sql. Try It by making it false.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 12:14 PM
Member
 
Join Date: Apr 2008
Posts: 2
ajoshi is on a distinguished road
No this field is used only to log all the sql output.

I need to prevent the autogeneration for some of the tables.
If you start the session and pass your configurations , hibernate automatically loads entityloaders , persisters and they have these fields for sqlinsert select etc which are set .
I want to disable these fields for some of my tables which are huge and are actually not used.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent keyboard shortcuts when a dialog is open? sajad.ar SWT / JFace 0 01-21-2008 02:29 PM
How to prevent duplicate username entry in database? anki1234 JavaServer Pages (JSP) and JSTL 4 01-09-2008 09:02 AM
Plugin to Prevent Newbies from Posting to Wrong Forum levent Suggestions & Feedback 1 08-12-2007 02:07 PM
org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.2.0.CR1 Heather Database 2 06-30-2007 04:01 PM
Hibernate Shuru Database 2 05-09-2007 06:39 PM


All times are GMT +3. The time now is 03:51 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org