Foren

what's the Ticket table for?

yang wang, geändert vor 7 Jahren.

what's the Ticket table for?

Junior Member Beiträge: 80 Beitrittsdatum: 24.08.15 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: what's the Ticket table for?

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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!

;)