facebook

could not instantiat id generator

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #280688 Reply

    Frank Lawlor
    Participant

    I am using MySQL v6.0.1

    To test the Hibernate tools I created a couple of simple MySQL tables. In MyEclipse in the Hibernate view I selected the tables and Hibernate Reverse Engineering to generate the Hibernate classes, etc.

    When I bring up an HQL window, type “from myTable” and go, I get the error:

    Error Building Session Factory
    A session factory for this …

    Reason:
    could not instantiate id generator

    I’ve tried just about every possible id generator option with the same results.
    I cannot find anything on any forums or in the Bauer-King book.

    How do I correct this problem?

    Thanks,
    — Frank

    #280710 Reply

    Loyal Water
    Member

    Frank,
    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    Can you switch to a new workspace, create a new project and try working with the HQL editor again. Do you still run into the same issue ?

    #280728 Reply

    Frank Lawlor
    Participant

    I think I figured out what was going on here.
    I deleted all the generated java files at one point to try to cleanly re-gen everthing, but accidently also deleted the hiernate.cfg.xml file.

    Not surprising that things didn’t work right, but unfortunately the error message was totally misleading.

    — Frank

    #280767 Reply

    Loyal Water
    Member

    Glad you figured it out.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: could not instantiat id generator

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