Generalize way of serialize polymorphie entities

Instead of declaring all super classes with its sub classes, the jackson
mapper is configured to handle polymorphie for himself.

This will lead to less code and also provide the way for an easier API