CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #3
    Join Date
    Jun 2007
    Location
    Aurora CO USA
    Posts
    137

    Re: javadb problem pls help

    First of all, I agree with ProgramThis about the "location" vs date thing. You should check that first.

    In this code
    Code:
    List result = session.createQuery("from Presentation.Appoinment where location=\'"+date+"\'").list();
    I was wondering why your are escaping the ticks (\') in your strings? It isn't necessary and could be causing problems.

    Another thing you can try is to set show_sql to true in your hibernate.config.xml
    Code:
            <property name="hibernate.show_sql">true</property>
    This will output the SQL commands as the are sent to the database. It may give you some hint as to what is going on.

    As ProgramThis said, if this doesn't help, post back with the specific errors you're having.

    Please use code tags around code and exception stack traces.
    Last edited by ajhampson; July 19th, 2010 at 09:32 AM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured