I've read that business logic for entities should be in a separate class (service) instead of being inside an entity class. That sounds correct for me and no problem with it, but what happens when there is entity inheritance?
I mean, I have two entities "Commute" and "SingleRide" with an abstract superclass called Ride. These two classes share some logic so a service for that would be ok, but at the same time each one has their own logic.
For instance, if I want to get a "ride description" which will be different depending on the entity class, how can I deal with this using a single service for "rides"? Should I create a service for each ride subclass? (repeating the entity structure)
In this case, how can I manage "rides" in a polymorphic way?