Hi Gavin:
Yes, you are right. Liferay does not use FK. As I understood, this decission was taken for compatibility reasons, this way makin liferay able to run over more DBMS.
Liferay core takes care of integrity. I was in doubt and had a look to de API.
For example, when deleted a role, which can be related to user and a group (ternary relationship mapped in UserGroupRole model bean) , Liferay deals to delete references in UserGroupRole.
For an example you can have a look
hereHope that helps.
Actually it helped me too.

This was a concrete examplee about roles, but I guess work the same for other usecases.
regards!
Aritz Galdos
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.