Is it possible to reuse one entity class for inserting data into two tables which are identical?
I have master tables (one parent and 9 child tables) and staging tables (one parent and 9 child tables). Only table names are different and rest all same.
My use case is if there is no workflow process, data gets saved to master tables (10). If there is workflow involved, data has to be saved to staging tables and after workflow approval, it has to be copied to master tables.
Please let me know the right approach to design the entity classes and reuse the entity classes.