Allow mapping from entity interfaces to entity #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently it is not possible to use interfaces as the target type of a relation, since RoomEx cannot know which entity corresponds to which interface.
Possible solutions:
--> not good, since a interface good theoratically be used for multiple Entities
--> maybe annoying on databases with many relations?
--> ugly
Make 1. as the default option which can be overridden by option 2?
Currently option 2 will be imlemented.
TODO:
Check if given entity class implements the specified interface
With the current implementation, this done by calls like:
Which is not only verbose and error prone due to nullable types, it is also slow, since we are using "getAllSuperTypes()". Maybe there is a better solution for this?