6 Replies Latest reply on Jul 30, 2012 3:36 AM by Max Rydahl Andersen

    No Messages under Hibernate Code Generation

    Jerry Gustanski Newbie

      I do not receive any messages when I run the Hibernate Code Generation tool which makes it extremely difficult to figure out what I am doing wrong when something doesn't work.  Is this normal? I have tried everything. Please advise .

      Thank you,

       

       

      Jerry

        • 1. Re: No Messages under Hibernate Code Generation
          Denis Golovin Master

          This is not normal.

           

          Did you check eclipse Error Log View?

           

          You also can try to eclips using command line interface and check if there are any exceptions in standard/error output. Just start terminal on linux or command processor on Windows, start eclipse from it, run Hibernate Code Generation again and see if anything reported in terminal/cmd window.

           

          Thanks

          Denis

          • 2. Re: No Messages under Hibernate Code Generation
            Jerry Gustanski Newbie

            Denis,

             

            Thank you for your kindly response.  I do get "progress" messages after I enabled the progress view and unchecked run in background. I see no messages for Hibernate Code Generation(HCG) other than those. I do see database (HSQLDB) lock errors on the error log when I try to see the Database tree under the Hibernate view of the Hibernate Console Configuration. Running HCG at this point does not create any tables but no error messages are produced (except for progress messages). Fixing the lock problem, still no messages are produced, good or bad, but the tables are created.  I tried starting windows from the command processor, still no messages.

             

            What sort of messages should I be seeing if I am trying to export schema to database?

             

            Thank you,

             

            Jerry

            • 3. Re: No Messages under Hibernate Code Generation
              Denis Golovin Master

              Jerry Gustanski wrote:

               

              What sort of messages should I be seeing if I am trying to export schema to database?

               

              Jerry, My hope was you see staktraces for exceptions that aren't redirected to eclipse Error Log View or any signs of what is going wrong. But it looks like something wrong with error handling and exceptions just ignored (we need to check that to be sure it is).

               

              To avoid lock exceptions with HSQL just start it in server mode as it is explained here for HSQL 1.8,1 and youl be able to open it id Database tree and use for HCG at the same time.

              Jerry Gustanski wrote:

               

              Fixing the lock problem, still no messages are produced, good or bad, but the tables are created.  I tried starting windows from the command processor, still no messages.

              What kind of message do you expect if everything is fine? I guess you mean that after generation there is no visual representation for results, right? Nothing opened, selected or pop up to show something was generated. Is that what you mean?

              • 4. Re: No Messages under Hibernate Code Generation
                Jerry Gustanski Newbie

                Denis,

                 

                 

                Denis Golovin wrote:

                 

                What kind of message do you expect if everything is fine? I guess you mean that after generation there is no visual representation for results, right? Nothing opened, selected or pop up to show something was generated. Is that what you mean?

                 

                That is what I exactly what I mean. I see progress messages as to what step in the the process HCG is in and a progress bar and percentage complete. The only way I know if it worked or not is by looking at the database under the Hibernate Console Configuration(HCC) tree,  I do get stack traces for problems there on the error log and in hibernate-tools.log. I changed the hibernate-log4j.properties file setting everything to debug and uncommenting everything. That gave me a more verbose output on the console when I viewed the Hibernate Console Configuration but still nothing when I do a HCG. Also, no output when I set property to display generted Schema  DDL to Console,  Does HCG look at a different hibernate-log4j.properties file than HCC? BTW I have the most recent version of JBOSS Tools for Eclipse installed.

                 

                I will see if I can get the HSQL Server stuff going.

                • 5. Re: No Messages under Hibernate Code Generation
                  Jerry Gustanski Newbie

                  I have done more research on this. Changing the Hibernate version to from 4.0 to 3.5 puts HCG message to the hibernate-tools.log file and to the console but at the end of the process they are, for some reason, removed from the console but they stay on the hibernate-tools.log file.  Still no messages when I simply change the version to 3.6 or 4.0.  I am kind of new to this. Should this be reported as a bug?

                  • 6. Re: No Messages under Hibernate Code Generation
                    Max Rydahl Andersen Master

                    Jerry, this does sound like a bug - please open one in https://jira.jboss.org/jira/browse/JBIDE

                     

                    Thank you,

                    Max