These are chat archives for katharsis-project/katharsis-framework

16th
Dec 2016
Remo
@remmeier
Dec 16 2016 06:56
@Ramblurr I have a look at JPA. I assume you have all your annotations on the getters/setters? So far it is only looking at the fields. I change that. The implementation makes use of the Java BeanDescriptor API. Potentially the thing in Katharsis-core can be dropped.
Remo
@remmeier
Dec 16 2016 13:11
added a PR for the getters.
Casey Link
@Ramblurr
Dec 16 2016 13:21
:clap:
Casey Link
@Ramblurr
Dec 16 2016 13:51
@remmeier Awesome :D With that PR, I just got my first working version of a katharsis-jpa api
Casey Link
@Ramblurr
Dec 16 2016 14:00
@remmeier Hm, when I fetch the relationships for a resource /resourceName/ID/relationshipName
I get a NPE here
Looks like that code is expecting the JsonApiResource.class annotation to exist
         includeFieldSetter.setIncludedElements(registryEntry.getResourceInformation().findRelationshipFieldByName(elementName).getElementType().getAnnotation(JsonApiResource.class).type(), response, queryAdapter, parameterProvider);
NPE happens at .type()
Casey Link
@Ramblurr
Dec 16 2016 14:49
fixing at katharsis-project/katharsis-framework#262
Casey Link
@Ramblurr
Dec 16 2016 18:15
@remmeier I would like to add run time package scanning for JpaMapper
that would make #266 much more useful!