Reputation: 3666
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?
Upvotes: 0
Views: 456
Reputation: 1382
This is logically correct as per the hierarchy you have, as every contract is rule also. IMO, there could be two options :
Upvotes: 1