Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP1 (5.1.4)
-
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
- is related to
-
LPS-3089 Add ServiceBuilder model toString and toXmlString method
-
- Closed
-