Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-3494

ServiceBuilder: Generate code for managing association in model classes

    Details

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

      Description

      I use ServiceBuilder to generate persistant classes and methods to work with them. The problem is that if I map relations between entities like 1 to many, many to many, etc. ServiceBuilder creates the needed tables in the database but the model objects doesn't have getters and setters to associate and work in a "Domain model pattern" style.

      For example:

      If I have an entity A and an entity B with a one-to-many relation between A and B, It would be great If I could:

      B b = new B();
      a.setB(b);
      ALocalServiceUtil.update(a);

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            aleix Aleix (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package