Details

    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0 CE RC1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      At revision 72122

      Description

      Service-Builder improvement

      Beside the feature - applying convert-null element to service generator - LPS-14863, it would be nice that Service-Builder could be able to support following features.

      1) NOT NULL constraint support

      add a new element (constraint-not-null) for entity column

      e.g., <column name="fieldG" type="Integer" constraint-not-null="true" />

      2) foreign key support

      foreign key could be represented as follows.

      e.g., <column name="userId" type="long" foreign-key="true" entity="User" on-delete="action-Value" on-update="action-Value" />

      where action-Value could be one of these values: "restrict", "cascade", "set-null", "no-action".

      3) Explicit field length support

      add a new element (constraint-max-length) for entity column

      e.g., <column name="title" type="String" constraint-max-length="150" />

      4) Explicit default value support

      add an element (constraint-default-value) like

      e.g., <column name="fieldG" type="Integer" constraint-default-value="1" />

      Refer to http://www.liferay.com/community/forums/-/message_boards/message/4541542

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              jonas.yuan Jonas Yuan
            • Votes:
              51 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

              • Created:
                Updated:

                Subcomponents