Action |
Model Option |
Discouraged ? |
Alternative |
---|---|---|---|
Add a stereotyped Entity operation (e.g. <<ns>>, <<nsreadmulti>>, etc.) |
None |
Allowed |
Rather than using Subclass with Replace, add the stereotyped operation through the use of Subclass without Replace. This will ensure that your subclass (and thus your new stereotyped operations) will be treated as 'External', and that you won't get discouraged warnings in Eclipse when you reference them. Note that you will continue to get discouraged warnings if you directly reference operations in the base Entity, as these are Internal - this is by design. |
Add a non-stereotyped Entity operation |
None |
Allowed |
Rather than using Subclass with Replace, add the non-stereotyped operation through the use of Subclass without Replace. This will ensure that your subclass (and thus your new non-stereotyped operations) will be treated as 'External', and that you won't get discouraged warnings in Eclipse when you reference them. Note that you will continue to get discouraged warnings if you directly reference operations in the base Entity, as these are Internal - this is by design. |
Change the structure of an Entity operation |
None |
Discouraged |
Create a new stereotyped operation using Subclass without Replace. |
Change an Entity operation option |
Auto ID Field Auto ID Key No Generated SQL Optimistic Locking Order By SQL Where |
Discouraged |
Create a new stereotyped operation using Subclass without Replace. |
Database Table Level Auditing |
Discouraged |
This option is settable via runtime properties, if you want to change the behaviour of application operations. Otherwise, create a new stereotyped operation to implement the required functionality using Subclass without Replace. |
|
On Fail Operation Post Data Access Operation Pre Data Access Operation Treat Readmulti Max as Informational Exception Readmulti Max Records Returned |
Discouraged |
Use Subclass with Replace to override these options on an application Entity class. Otherwise, create a new stereotyped operation to implement the required functionality using Subclass without Replace. |
|
Change an Entity class option |
Enable Validation |
Discouraged |
Use Subclass With Replace to override this option on an application Entity class. Otherwise, create a new stereotyped operation to implement the required functionality using Subclass without Replace. |
Abstract Allow Optimistic Locking No Generated SQL |
Discouraged |
Create a new stereotyped operation using Subclass without Replace. |
|
Audit Fields Last Updated Field |
Discouraged |
Use Extension Classes to override these options on an application Entity class. |