facebook

Hibernate and Sql Errors [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #218703 Reply

    I’m using Hiberanate with struts. I’m wondering how to get the sql error.

    For example, I get the error “delete failed” from hibernate, but I can not distinguish why it failed…were there related records?

    If I insert and it fails because of a duplicate key — all I get is “insert failed”.

    Anybody know how I can determine what the reall error was?

    Lee

    #218718 Reply

    Riyad Kalla
    Member

    Lee I believe you can turn on showing the SQL statements issued by hibernate to the console, so you would atleast be able to see the query that was used before it fails, but I don’t know how to show the hibernate SQL exception… maybe the Hibernate Forums can help with that detail?

    #218723 Reply

    well…it was worth a shot….you know so much 🙂

    #218724 Reply

    Riyad Kalla
    Member

    well…it was worth a shot….you know so much 🙂

    Haha, you just ask the right questions 😛

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Hibernate and Sql Errors [Closed]

You must be logged in to post in the forum log in