Spring Roo
  1. Spring Roo
  2. ROO-46

Drag and drop GUI support for creating persistence classes

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      If you can provide a GUI to create persistence class with "click and drop" like workflow it would be good. This would replace the following style of Roo commands:

      new persistent class jpa -name ~.domain.Item
      add field string -fieldName name -notNull
      add field string comments -sizeMax 150
      add field number -fieldName price -type java.lang.Float

        Issue Links

          Activity

          Hide
          Juan Castrejón added a comment -

          Here's another project that could be of interest: http://code.google.com/p/model2roo

          It relies on the Eclipse Modeling Framework (EMF) and the ATL Transformation Language to convert either Eclipse UML2 or Ecore models into Roo scripts. The details of the Roo commands are specified through UML profiles and Ecore annotations, respectively.

          Best Regards.

          Show
          Juan Castrejón added a comment - Here's another project that could be of interest: http://code.google.com/p/model2roo It relies on the Eclipse Modeling Framework (EMF) and the ATL Transformation Language to convert either Eclipse UML2 or Ecore models into Roo scripts. The details of the Roo commands are specified through UML profiles and Ecore annotations, respectively. Best Regards.
          Hide
          whyBish added a comment -
          Show
          whyBish added a comment - Nice work on http://code.google.com/p/model2roo Juan.
          Hide
          Josef Vychtrle added a comment -

          Afaik the best approach to this is XML definition ... For instance Liferay portal has an integrated source code generator ( for domain model, dao layer, ddl scripts, remote service layer, etc. etc., everything is generated) based on this http://docs.liferay.com/portal/6.0/definitions/liferay-service-builder_6_0_0.dtd.org.html schema and it is absolutely brilliant, transparent, self-explanatory ....

          Show
          Josef Vychtrle added a comment - Afaik the best approach to this is XML definition ... For instance Liferay portal has an integrated source code generator ( for domain model, dao layer, ddl scripts, remote service layer, etc. etc., everything is generated) based on this http://docs.liferay.com/portal/6.0/definitions/liferay-service-builder_6_0_0.dtd.org.html schema and it is absolutely brilliant, transparent, self-explanatory ....
          Hide
          Enrique Ruiz (DiSiD) added a comment -

          I think we shouldn't reinvent the wheel, why cannot we take the DBRE way? That's is:

          • To have an UML2 description file than contains the metadata information in XML format, it could be stored and maintained by a Roo add-on
            Is XMI an option?
          • The add-on creates/maintains JPA entities based on that file

          Features of this proposal:

          • bi-directional
            • Changes in entities should update the UML2 description file
            • Changes in UML2 description file should update JPA entities
          • UML2 visual designer to update the UML2 description file
          • Use Roo console or write Java code directly as usual
          • Just choose your way
          Show
          Enrique Ruiz (DiSiD) added a comment - I think we shouldn't reinvent the wheel, why cannot we take the DBRE way? That's is: To have an UML2 description file than contains the metadata information in XML format, it could be stored and maintained by a Roo add-on Is XMI an option? The add-on creates/maintains JPA entities based on that file Features of this proposal: bi-directional Changes in entities should update the UML2 description file Changes in UML2 description file should update JPA entities UML2 visual designer to update the UML2 description file Use Roo console or write Java code directly as usual Just choose your way
          Hide
          Isuru added a comment -

          Hi Enrique Ruiz (DiSiD),

          I'm doing a project based on this issue and features are almost same as what you have mentioned.

          Actually I started this project about an year ago. I changed the initial design several times.

          I'll let you know more details later.

          Suggestions are welcome.

          Thanks!

          Show
          Isuru added a comment - Hi Enrique Ruiz (DiSiD), I'm doing a project based on this issue and features are almost same as what you have mentioned. Actually I started this project about an year ago. I changed the initial design several times. I'll let you know more details later. Suggestions are welcome. Thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              cometta
            • Votes:
              22 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated: