I'm currently searching for a solution for this Problem: I have a nested Tree, but the Leafs can be different types of Entities. For Example I have a Entity "Project", with children that can be of the type "Folder" or "Textfile", Folders having the possibility to have Children of their own again.
Since i couldn't find a solution: Is there a native Solution for this Problem (like using an Abstract Entity or Interface) or how would you solve this Problem?
Thanks in advance!