I must set the data and user value in individual tables. These values must generate the user who made the last edition and the date when it happened (same while creating new object). These tables are an additional database, added by generate model. And even when I tried to associate users with the user table from the main cuba database, I can not select the User [sec & User] table. Theoretically, this is not necessary, I only need to get the username from the current session.
CUBA standard entities implement Creatable and Updatable interfaces:
- Creatable – interface for entities that keep the information about when and by whom the instance was created.
- Updatable – interface for entities that keep the information about when and by whom the instance was last changed.
So, you may use the standard entitiy properties
createdBy, createdAt, updatedBy, updatedAt to achieve your goals.