留言板

what's the Ticket table for?

yang wang,修改在7 年前。

what's the Ticket table for?

Junior Member 帖子: 80 加入日期: 15-8-24 最近的帖子
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,修改在7 年前。

RE: what's the Ticket table for?

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
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!

;)