cyberborean / rdfbeans

Java persistence with RDF
Other
11 stars 12 forks source link

Inherit @RDFBean to subclasses #35

Closed twallmey closed 5 years ago

twallmey commented 5 years ago

Hi!

It would be very useful if @RDFBean annotations would be inherited to subclasses. Currently this does not work and throws a RDFBeanException when assigning a property value to a (sub)class that isn't explicetely annotated. The mentioned exception is thrown in the following situation:

Possible solution: The problem arises within the class RDFBeanInfo in method isRdfBeanClass(Object). The method makes use of ReflectionUtil.getClassAnnotation() that does currently does only consider direct parent interfaces. If their anchestor interfaces would be considered as well the problem was solved.