Foros de discusión
Entity in service.xml with column type as primitive Collection
Nilesh Gundecha, modificado hace 10 años.
Entity in service.xml with column type as primitive Collection
Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
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
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
David H Nebinger, modificado hace 10 años.
RE: Entity in service.xml with column type as primitive Collection (Respuesta)
Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
no
Swetha Harshini, modificado hace 8 años.
RE: Entity in service.xml with column type as primitive Collection
New Member Mensajes: 24 Fecha de incorporación: 16/06/14 Mensajes recientesDavid 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?
David H Nebinger, modificado hace 8 años.
RE: Entity in service.xml with column type as primitive Collection
Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
Collections are not supported because of the issues crossing the class loader boundary and serialization.