facebook

O/R editor vision

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226592 Reply

    carniz
    Member

    In short: I would love to be able to register/import custom made velocity templates for use in an (Hibernate) O/R editor.

    ASCII art version of thought MyEclipse tool:

    
                                             [A: tool panel]
    -------------------------------------------------------------------------------------------------------------
     [B: list of tables]  |                                                                 | [C: property inspector]
                          |                                                                 |
                          |                  [D: O/R view]                                  |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
                          |                                                                 |
    -------------------------------------------------------------------------------------------------------------
                                              [E: template list]
    

    Use case:

    – you open the O/R perspective and define a DB connection/connect to a defined datasource
    – selecting one table in view B will zoom in on the relevant tables+classes in view D.
    – you edit the mapping properties in view C, for example: desired java data type for fields, desired collection type (set/bag/list/..) for collections, etc
    – you click a checkbox for each named template you want to use with that table in view E
    – finally, you click the “Generate..” button in view A to bring up a wizard where you define base packages etc for the classes to be generated, and finish the generation.

    MyEclipse could provide a set of standard templates(hbm.xml template, POJO template, etc) to use with the O/R mapper, but you should also be able to import custom made tamplates and assign names to them (eg: “MyNiftyCRUDBean template”). All templates known to the tool would show up in the template view (E) so that you could choose what templates to use for a specific table, you may for example want to generate eg Session EJBs for some tables but not for all.

    Don’t know what plans you have for an O/R editor, but I would very much like to see something like this in MyEclipse. I apologize for the lame ASCII art decription, but I hope you get the idea by looking at it.

    Regards
    – Mikael

    #226598 Reply

    Riyad Kalla
    Member

    Damn Mikael very cool idea, I’m going to kick this back to management as well as Hibernate dev to see if this is dooable (or already on our todo list).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: O/R editor vision

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