Question
Map class instance to other table than "pr_other"
Hello,
I have created an abstract class. Then i changed it to Concrete class.
I checked the the box "Automatically generate a unique ID for records of this type" to have a primary key.
The warning "Instances of this class save to the pr_other table, which has few properties exposed as columns. Consider mapping this class to a different table ." appeared.
So my question is :
how map my class instance data to an other table than "pr_other" in order this class would have this own DB table ?
Hi Adel,
It's a general class warning , when ever a Class is created with keys it will expect a table mapping for the class in DB . if it not able to find the mapping in inheritance too , then it will map the class to pr_others by default and store the instances of the class on it .
If you need to overcome "Instances of this class save to the pr_other table which has few properties exposed as columns. Consider mapping to a different table." this warning, create a table in the PegaRules DB ,Column names similar to properties (Pega recommends tables to have pzInskey, pxobjClass and pxInsName for better performance) ans a corresponding Data-Admin-DB-table for the Class and the table.
Hope it helps.
Thanks