Foros de discusión

Use auto-generated keys for Liferay Entities

thumbnail
Prakash Khanchandani, modificado hace 8 años.

Use auto-generated keys for Liferay Entities

Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientes
For my custom service entities build using Service-builder I can use the `identity-type` in `service.xml` so that my custom entity's primary key generation is handled by the underlying databases.

Is there a way I can have Liferay's entities to also use database's auto-generation instead of using a custom `Counter`?

Note: Cross posted on stackoverflow: http://stackoverflow.com/q/31604575/468763

Thanks