-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add non-johm annotations to @Id field #31
Comments
Yeah, let me fix this. I think we need to do a better job of the fix for Issue 16 and ignore all JOhm-specific annotations other than the Id on id field. The patch I put in blindly ignores every other annotation but @id. |
Pushed a fix on my master; will wait for the prior pull-request to be merged to make another pull-request for this patch. In case you want to use the patched version right away, please feel free to clone my repo: https://github.com/gsharma/johm |
done, pushed to master |
Using JOhm 0.5.0
Test case:
@retention(RetentionPolicy.RUNTIME)
@target(ElementType.FIELD)
public @interface TestAnnotation {}
Trying to save the entity gives the exception:
redis.clients.johm.JOhmException: Element annotated @id cannot have any other annotations
at redis.clients.johm.JOhmUtils$Validator.checkValidIdType(JOhmUtils.java:323)
The text was updated successfully, but these errors were encountered: