To code different default triggers whether an entity is flags as Non-Database or not, it would be nice to have different \'default entities\' in the U model.
Actually, we have the USUPERTYPEDEF entity in the U model. We should have access to an UNOTDATABASEDEF for non-database modeled entities (used for tooling and code reuse) Another approche would be to have a <$entDB> constant which indicates at compile-time if the entity is flagged as database or not.
In the current state, we need to manually modify all triggers for Non-Database entities. Then, when inserted in components, the component level default override the definitions.
Uniface Development Environment