vlad wrote:
You can map the Toxonomy base class as @MappedSuperclass so that the inheritance module is materialized in the DB since it might not be very useful for polymorphic queries.
I will certainly try to implement it that way and see how it goes. Thanks for your input.
At the moment, I've proceeded with @ManyToMany (but actually two @OneToMany, as you suggest in your book) mapping between:
- Entry/post and Category
- Category and Subcategory,
and finally (not yet there),
- Subcategory and Tag
Do you think such a solution would be acceptable or is it too much classes/tables for what I need to achieve?