1 2 Previous Next 20 Replies Latest reply on Oct 9, 2009 11:04 AM by jpav Go to original post
      • 15. Re: Generating DDL from annotated POJOs
        jpav

        Max, is there any way I could package up and send you my project and console configuration so you can directly see what I've got and tell me what I'm doing wrong? Packaging up the project is easy, but I have no idea where the console configuration is actually stored.

        • 16. Re: Generating DDL from annotated POJOs
          maxandersen

          Double click the console configuration, go to the Common tab and tell it to save the config into the project in the workspace - then zip that up and ship it.

          • 17. Re: Generating DDL from annotated POJOs
            maxandersen

            I got your file and I can see that the console configuration refers to a hibernate.cfg.xml that does not exist.

            Is that intentional ? And if it is, any reason why you got that in there and expect it to be able to load without errors ? :)

            • 18. Re: Generating DDL from annotated POJOs
              jpav

              That was actually a relatively recent change. I've been playing with different options trying to get this to work. I did have a hibernate.cfg.xml. It wasn't clear initially (after deleting the file) how to get rid of the reference in the console configuration since the field is disabled, but then I remembered I have to set the configuration type to "Core". Regardless, it has nothing to do with my problem. I started out without it, and after removing it, the problem persists.

              • 19. Re: Generating DDL from annotated POJOs
                maxandersen

                Seems like my comments only make it through half of the time.

                The problem is that the class name of the jdbc driver is wrong (exactly as the error message actually says).

                When I look at the latest sql driver from MS it contains com.microsoft.sqlserver.jdbc.SQLServerDriver which is the new name for their driver it seems.

                The name used in your project is the old server name AFAIK.

                • 20. Re: Generating DDL from annotated POJOs
                  jpav

                  Geez! I can't believe that was it! A simple transposition of "sqlserver" and "jdbc". I had it correct in the DTP configuration and the properties file, but not the data source file (or vice-versa, I don't remember now). Thanks, Max.

                  1 2 Previous Next