facebook

How to control the generator class for Hibernate Reverse Eng

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #331198 Reply

    Mork
    Participant

    When you reverse engineer the Hibernate HBM files from the database (in the MyEclipse database perspective), how do you control what Generator class is used (increment vs. identity, for example)?

    I had a case where I had three HBM files where the generator class was identity and they weren’t adding records to the database until I changed the generator class to increment.

    That seems obvious … now…. four hours later.

    Is there a way to specify what generator class is used? I didn’t see it.

    Even if I look at the Hiberate mapping files in the cool MyEclipse viewer, there doesn’t seem to be a way to modify the generator class except to do it manually.

    This should be an option right in the Reverse Engineer dialog. Maybe it is and I just don’t see it?

    Please let me know.

    Thanks,

    – m

    #331244 Reply

    support-swapna
    Moderator

    Mork,

    You can choose the Generator class in the Reverser Engineering wizard itself. Here is the screenshot for your reference.

    If there is no selected value for the Id Generator, it takes “assigned” as default.

    Let us know if you have any further questions.

    #331249 Reply

    Mork
    Participant

    @support-swapna wrote:

    Mork,

    You can choose the Generator class in the Reverser Engineering wizard itself. Here is the screenshot for your reference.

    If there is no selected value for the Id Generator, it takes “assigned” as default.

    Let us know if you have any further questions.

    Can’t believe I missed that.

    Thank you very much.

    – m

    #331265 Reply

    support-swapna
    Moderator

    Mork,

    Glad that we could help you.
    Do let us know if you see any issues.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to control the generator class for Hibernate Reverse Eng

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