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

The description/example in the liferay-service-builder_x_x_x.dtd has wrong "Integer" type defined in id column

    Details

      Description

      In liferay-service-builder_x_x_x.dtd there are some examples describing how to write the service.xml. Below is one example:

      <column
      name="id"
      type="Integer"
      primary="true"
      id-type="class"
      id-param="com.liferay.counter.service.persistence.IDGenerator"
      />

      But the above example is wrong because the type="Integer" is not a valid type for a id column.

      The type="Integer" can be used in regular columns, but not the id column. Please see the attached screenshots for detail.

      For more detail please see https://www.liferay.com/community/forums/-/message_boards/message/30897780

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                5 years, 28 weeks, 5 days ago