Results 1 to 3 of 3
  1. #1
    ajoshi is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Unhappy 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

  2. #2
    javarishi is offline Member
    Join Date
    Apr 2008
    Posts
    91
    Rep Power
    0

    Default Sql String

    Hei,
    In cfg file there is an option called, show sql. Try It by making it false.

  3. #3
    ajoshi is offline Member
    Join Date
    Apr 2008
    Posts
    2
    Rep Power
    0

    Default

    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.

Similar Threads

  1. Replies: 0
    Last Post: 01-21-2008, 02:29 PM
  2. How to prevent duplicate username entry in database?
    By anki1234 in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 01-09-2008, 09:02 AM
  3. Plugin to Prevent Newbies from Posting to Wrong Forum
    By levent in forum Suggestions & Feedback
    Replies: 1
    Last Post: 08-12-2007, 02:07 PM
  4. Replies: 2
    Last Post: 06-30-2007, 04:01 PM
  5. Hibernate
    By Shuru in forum JDBC
    Replies: 2
    Last Post: 05-09-2007, 06:39 PM

Posting Permissions

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