mercredi 18 février 2015

Spring data rest repository keyword OR

I have an object with an attribute that contains an OR in the name. Or is also a keyword in spring data rest that is used to concatenate property expressions in repositories.


I have an object called Instance with an attribute instanceOrUrlId.


I want to be able to query an instance by searching with this attribute. Normally I would just put: findInstanceByInstanceOrUrlId.


What would i do to specify that the OR is in the property and is not being used to combine properties?


Aucun commentaire:

Enregistrer un commentaire