Fórumok

Entity in service.xml with column type as primitive Collection

thumbnail
Nilesh Gundecha, módosítva 10 év-val korábban

Entity in service.xml with column type as primitive Collection

Regular Member Bejegyzések: 205 Csatlakozás dátuma: 2009.12.01. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: Entity in service.xml with column type as primitive Collection (Válasz)

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
no
Swetha Harshini, módosítva 8 év-val korábban

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

New Member Bejegyzések: 24 Csatlakozás dátuma: 2014.06.16. Legújabb bejegyzések
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, módosítva 8 év-val korábban

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

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Collections are not supported because of the issues crossing the class loader boundary and serialization.