Automatically renegated entity attributes
966
Views
9
Comments
New
Backend

While talking to some work colleagues, I had an idea regarding the way entities are created and the process that ends up happening almost every time.

Regardless of the Entity about to be created, there are a few attributes that end up always being present, such as:

  • CreatedAt
  • UpdatedAt
  • CreatedBy
  • UpdatedBy
  • IsActive
  • "Some generic business related attribute"
  • (...)

The idea here consists of a small menu that allows the user to create a default “Form” that will default the generic format of each Entity created on the module he's currently working on.

With this, any Entity (Non-Static) that gets created on that module automatically “Inherits” those attributes, already defined to the correct format, w/ descriptions etc.

This behaviour should be possible to turn On/Off with ease.


Any feedback would be appreciated,

Cheers!

2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Backend

Some of OutSystems' competitors automatically create these as part of the system without even asking you just check off what you need.


J.Ja

That would also be a way of doing it @Justin. Regardless how it would work, the feature seems simple enough to implement, and would simplify and fasten a lot of work.

I wasn't aware it was already something other platforms implemented, thank you for the info! 


Cheers!

Merged this idea with 'Creation of Entities with versioning attributes.' (created on 21 Feb 2020 11:31:34 by Miguel Verdasca)

Often we need to create tables with the possibility of creating a version, or at least with the data of who and when a given entry was created in the table, and who and when the last update was made. I would say that this happens in many situations.

What I suggest is because you do not create an option when creating an entity if we want to teach fields like the ones below automatically:

  • CreatedOn
  • CreatedBy
  • LastUpdatedOn
  • LastUpdatedBy
  • CreateByWorkStation
  • UpdatedByWorkStation

In this way, we guarantee the coherence of attribute names throughout the data model.

Cheers,

Nuno Verdasca





This comment was:
- originally posted on idea 'Creation of Entities with versioning attributes.' (created on 21 Feb 2020 by Miguel Verdasca)
- merged to idea 'Automatically renegated entity attributes' on 28 Sep 2020 15:47:38 by Daniël Kuhlmann
Merged this idea with 'Accelerator for control attributes' (created on 05 Feb 2021 17:32:02 by Daniel Tavares)

When creating entities, it would be useful to quickly add attributes generally used in a number of entities, namely the following:


  • isActive
  • CreatedBy
  • CreationDate
  • LastChangedBy
  • LastChangedDate




This comment was:
- originally posted on idea 'Accelerator for control attributes' (created on 05 Feb 2021 by Daniel Tavares)
- merged to idea 'Automatically renegated entity attributes' on 07 Feb 2021 10:01:41 by Daniël Kuhlmann

We could spare some time when adding the same control attributes to various entities.



This comment was:
- originally posted on idea 'Accelerator for control attributes' (created on 05 Feb 2021 by Daniel Tavares)
- merged to idea 'Automatically renegated entity attributes' on 07 Feb 2021 10:01:41 by Daniël Kuhlmann

Nice idea, and good written! But it already exists since 2019 so I will merge it into the that once.



This comment was:
- originally posted on idea 'Accelerator for control attributes' (created on 05 Feb 2021 by Daniel Tavares)
- merged to idea 'Automatically renegated entity attributes' on 07 Feb 2021 10:01:41 by Daniël Kuhlmann