Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-825

toString() and toXmlString() methods added to modelImpl classes

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.1 EE SP1 (5.1.4)
    • 5.1 EE SP2 (5.1.5)
    • None
    • All

    Description

      ServiceBuilder will now automatically generate toString() and toXmlString() methods for all *ModelImpl (e.g. UserModelImpl, BlogsEntryModelImpl) classes.

      The toString() method will return a string of the form:

      {name1=value1, name2=value2, name3=value3}

      The toXmlString() method will return a string of the form:

      <model>
      <model-name>com.liferay.portlet.bookmarks.model.BookmarksEntry</model-name>
      <column>
      <column-name>name1</column-name>
      <column-value>value1</column-value>
      </column>
      <column>
      <column-name>name2</column-name>
      <column-value>value2</column-value>
      </column>
      <column>
      <column-name>name3</column-name>
      <column-value>value3</column-value>
      </column>
      </model>

      Attachments

        Issue Links

          Activity

            People

              support-ee EE Support
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP2 (5.1.5)