facebook

Using with MiddleGen

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #222482 Reply

    Kevin_L
    Member

    Hi Guys,

    I have search through your forum and didn’t find what I am looking for. Will you show me how I can use the files that is created by Middlegen with MyEclipse… I mean hibernate tool with MyEClipse is nice but , if I understand it right, it doesn’t create association that reflect the database reference constraints…right?

    Well please point me to the right direction.

    K~

    #222486 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft dev (we don’t offer direct support for middlegen with ME). I can assure you that our enhancements to the DB explorer and mapping tools are far from done. Hopefully the next few releases should bring you what you are missing.

    #222497 Reply

    Kevin_L
    Member

    I am not asking for direct support for Middlegen…….I thought may be you guys know how to configure MyEclipse to add hibernate files that are generated from middlegen. The reason is because I already stated using MyEclipse Hibernate tool and it created files. And the realized that it didn’t create associations….but then someone told me middlegen create associations….

    I guess the only way for me to implement associations through hibernate objects is doing manually to edit the hibernate mapping files?

    Please let me know if I am right or not….I don’t mind doing that…I just want to make sure I understand about the myeclipse’s capabilities and limits for sure.

    K~

    #222503 Reply

    support-jeff
    Member

    Middlegen -> ME: only through xdoclet markup that you might be able to get middlegen to produce (do not quote me on that)

    Associations: If your database supports foreign keys, then objects you create classes and mappings for using ME should contain many-to-one associations for the child table (so if PARENT table contributes a FK to CHILD table, Child class and mapping will have association to Parent class). Unfortunately, collections and more complex mappings are not supported yet, but I am working on this for the next major release of ME.

    And, yes, you can modify the files produced by ME to suit your needs. Just be aware that if you chose to re-generate mappings after doing so, you will lose your changes.

    #222506 Reply

    Kevin_L
    Member

    Hi Jeff,

    Thanks for the answer! That is all I need! I will just modify the files manually then. No Problem.
    As Riyad recommended, Hibernate In Action book surely helped me understanding hibernate.

    🙂
    I can’t wait for the new features you guys gonna have for the future releases….

    10x ,
    K~

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Using with MiddleGen

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