facebook

Generate Hibernate POJO after modifying HBM?

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

    NeutronIC
    Member

    Hi,

    Is it possible (and if so, how) to run the hibernate generator after manually modifying the HBM files? I’ve done a first pass and generated the basic files automatically however due to the well-known limitations as far as setting relationship types (one to one, etc) within MyEclipse, i’m happy to modify them myself and customise the file as required – but once I do that, I can’t see how I then re-run the generator to get it to build the POJO’s from the new files?

    Thanks,

    Matt.

    #242994 Reply

    Riyad Kalla
    Member

    Matt,
    Try this:

    1) Write an ant script that does what you need it to
    2) Go to your Builders properties for your project, and add it as an external Builder to the build loop.

    I think that should give you what you want… although it might run more often than you like, I haven’t played much with external builders.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Generate Hibernate POJO after modifying HBM?

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