Forums de discussion

what's the Ticket table for?

yang wang, modifié il y a 7 années.

what's the Ticket table for?

Junior Member Publications: 80 Date d'inscription: 24/08/15 Publications récentes
Hi,
There is a ticket table and model entity in liferay portal. What's it for ?
It seems like something related to access security.
Could it be used in the common use case like management of validate period of a share link?

Thanks.
thumbnail
Olaf Kock, modifié il y a 7 années.

RE: what's the Ticket table for?

Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
yang wang:
There is a ticket table and model entity in liferay portal. What's it for ?

It's for storing Liferay internal data that you shouldn't touch.

yang wang:
Could it be used in the common use case like management of validate period of a share link?

No, unless Liferay itself uses it for this purpose. You must not write to the database (and not even consider thinking about it). There are a lot of stories of people who have manually written to the database, which ended in disaster: Liferay's tables are Liferay's tables. If you want to store any data in addition: Use your own.

Future versions of Liferay will attempt to upgrade their tables - and if they can't make use of your custom changes, they'll fail. Then you'll blame Liferay for being impossible to upgrade. And this is only the lucky scenario, where only the upgrade fails, and not the day-to-day operation.

Repeat after me:

I will not consider writing to Liferay's database!
I will not consider writing to Liferay's database!
I will not consider writing to Liferay's database!


Promise!

;)