I have class Contract which extends Base class Rule . i have different CRUD for Rule and Contract. my base class has got 6 fields and derived class got 3 specified fields. when i am listing the Rules created, it also displays Contract which is saved in the table. if i am listing rule it should list only Rules. how can i do that? what is the Thing that i need to take care when dealing with groovy inheritance?
Share
This is logically correct as per the hierarchy you have, as every contract is rule also. IMO, there could be two options :