Syncleus / Ferma

An ORM / OGM for the TinkerPop graph stack.
http://syncleus.com/Ferma
Apache License 2.0
136 stars 26 forks source link

Adding a custom Annotation #22

Closed mikrobe closed 6 years ago

mikrobe commented 7 years ago

In order to register a custom Annotation, it is necessary to create an annotation method handler and add it to the AnnotationFrameFactory's methodHandlers map. The issue is that AnnotationFrameFactory's methodHandlers is private, hence it is not accessible. Changing it to "protected" it allows to extend AnnotationFrameFactory and add the custom annotation handler right inside the constructor.

freemo commented 6 years ago

@mikrobe hi, sorry I just noticed this ticket. Very sorry it slipped through the cracks, I usually implement issues quickly. I will investigate this and should have a fix in the next release for you.

freemo commented 6 years ago

@mikrobe I have now implemented a solution to this ticket. Sorry for the terribly long wait, that will never happen again. Please feel free to reach out if you need additional help in the future.

The following commit resolves this ticket: https://github.com/Syncleus/Ferma/commit/391d2a60e96967d654d187b80845e21c7f51765f