Foren

Entity in service.xml with column type as primitive Collection

thumbnail
Nilesh Gundecha, geändert vor 10 Jahren.

Entity in service.xml with column type as primitive Collection

Regular Member Beiträge: 205 Beitrittsdatum: 01.12.09 Neueste Beiträge
Hi,

Is it possible to define entity in service.xml with columm type as Map<String, String>? I want my entity to hold one extraData column where I can store multiple key-value pairs (just like serviceContext object).

Regards,
Nilesh
thumbnail
David H Nebinger, geändert vor 10 Jahren.

RE: Entity in service.xml with column type as primitive Collection (Antwort)

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
no
Swetha Harshini, geändert vor 8 Jahren.

RE: Entity in service.xml with column type as primitive Collection

New Member Beiträge: 24 Beitrittsdatum: 16.06.14 Neueste Beiträge
David H Nebinger:
no



Hi,

I have tried to build the services with

<column name="names" type="Collection"/>

But no methods are available in XXXXLocalServiceUtil classes to set or get the values of 'names' . Is that build error or doesn't it work that way?
thumbnail
David H Nebinger, geändert vor 8 Jahren.

RE: Entity in service.xml with column type as primitive Collection

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Collections are not supported because of the issues crossing the class loader boundary and serialization.