In hybris, I have Created ArchivalOrderModel extends orderModel
Moved Data from OrderModel To ArchivalOrderModel. (Deleted Record from OrderModel)
When I fired query
select {pk} from {order}
In result Im getting Records of ArchivalOrderModel too.
Is there any way to restrict with help of data Modeling definition or Any other suggestion for archival
When we search any type, by default its subtypes will also be retrieved in the result.
If you want to exclude the subtype, you must use the exclamation mark (!) while specifying the type in the query like this.
Select * from {Order!}