![]() This is the default lookup strategy and, thus, is used if you do not configure anything explicitly. It looks up a declared query first, and, if no declared query is found, it creates a custom method name-based query. If the repository infrastructure does not find a declared query for the method at bootstrap time, it fails.ĬREATE_IF_NOT_FOUND (the default) combines CREATE and USE_DECLARED_QUERY. See the documentation of the specific store to find available options for that store. The query can be defined by an annotation somewhere or declared by other means. USE_DECLARED_QUERY tries to find a declared query and throws an exception if it cannot find one. You can read more about query construction in “ Query Creation”. The general approach is to remove a given set of well known prefixes from the method name and parse the rest of the method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |