3 Replies Latest reply on Aug 18, 2010 7:02 AM by csenes csenes

    Hibarnate issue

    csenes csenes Newbie

      why seam give like org.hibernate.exception.SQLGrammarException: could not load an entity: [org.domain.dokumanyonsist.entity.Dokuman 2583094]

      what does it mean this error and what reasons,

      thanks for any reply

        • 1. Re: Hibarnate issue
          Leo van den berg Master


          It is documented in the Hibernate documentation as:

          Implementation of JDBCException indicating that the SQL sent to the database server was invalid (syntax error, invalid object references, etc).

          It has nothing to do with Seam, it means that you must look into the query you have made to load the specific Entity

          Can be numerous things like an error in you mapping (which is normally detected earlier in the startup process of your server). Or you have an non-existing reference (for instance you use uppercase where the bean-property is using lower case).


          P.S. Possibly the Hibernate forum is a better (and a faster) way to get an answer.

          • 2. Re: Hibarnate issue
            Rob Shepherd Newbie

            If you do raise this problem on the hibernate forums, please post a link to that post here.

            In your persistence.xml (presumably persistence-dev.xml) enable the hibernate.show_sql property

            <property name="hibernate.show_sql" value="true"/>

            The query output will be shown on your console. 
            Take a look at it for SQL Errors.
            You can use it to paste into your RDBMS's monitor program, which may give better output for the problem.

            What Database are you using?


            • 3. Re: Hibarnate issue
              csenes csenes Newbie

              thanks for replies,I'll search hibernate forum. I use OracleDB,I will do yoru said