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

CLONE -service fails in a plugin when primitive wrappers are used as column type

    Details

    • Branch Version/s:
      6.0.x, 5.2.x, 5.1.x
    • Backported to Branch:
      Committed

      Description

      Primitive wrapper types like Boolean and Integer are legal in service definition.
      But when any of the primitive wrappers are used as types for columns in a portlet or a web plugin's service, read fails with no errors and write fails with hibernate "MappingException: unknown entity".
      This is because the type is not generated in the hbm mapping file when type is not primitive. This causes Hibernate to use reflection which fails because the hibernate/portal classloader does not have the portlet's entity class.
      So type needs to be generated even for primitive wrappers.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prashantdighe Prashant Dighe (Inactive)
                Reporter:
                krueger Jan Krueger (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 41 weeks ago

                  Subcomponents