How to check if the Entity is static

How to check if the Entity is static

  

Hello,

Is there a way to check, by aggregation query or some action, if an entity is static having only its name?

Thank you.

Solution

Yes, in "manage dependencies", look for "(System)" and add a reference to the "entity" table.

That table contains all entities defined in all your applications. You can query it for the name of the entity you have and in the column "Data_kind" it will say either "entity" or "staticEntity".

Be careful though. You need to specify the espace_id as well in your query because different espaces (modules) can have entities (tables) with the same name.

Solution