You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it does not go into much detail, also, I tried adding the @InjectAnnotation to my type but this just results in a compilation error "InjectAnnotation cannot be resolved to a type"
The text was updated successfully, but these errors were encountered:
@InjectAnnotation is in org.immutables:annotate module, which should be added as an additional compile-only dependency.
For the bean validation (sorry if it's the other kind of validation) please see general discussion #26 and #513 introducing Style.validationMethod flag
Using @InjectAnnotation is there a way to format the !name parameter. For example, I would like a method void getFooBar()
to be annotated as @MyAnnotation(value = "FOO_BAR") void getFooBar() instead of @MyAnnotation(value = "getFooBar") void getFooBar()
@vsrikrishna32 thank you for trying out @InjectAnnotation! Currently there's no such feature to format !name. There's a number of conversions can be implemented, but "development time vs how many people will actually use" kind of balance suggest that it's probably not enough motivation for this yet.
I have some javax.ws validations annotations that I need to add to my generated immutables classes. Is there a way to do this? I did see the following section of the documenation:
http://immutables.github.io/immutable.html#annotation-injection
But it does not go into much detail, also, I tried adding the
@InjectAnnotation
to my type but this just results in a compilation error "InjectAnnotation cannot be resolved to a type"The text was updated successfully, but these errors were encountered: