Restore Deleted Entities

If I restore deleted entities, the mapped entities should restore. how to solve that issue

For eg.
I have two Entities like Customer and Order.
In Order entity I have mapped customer.
If i delete customer, order is get deleted and If i restore the order entity customer entity did not restore

The standard procedure restores only COMPOSITION items deleted together with the master entity.
You can create your own service, see how it is done in the framework: EntityRestoreServiceBean.java