What rules govern using @MOdify and @Query in JPA Repository?
问题 Now that my project is successfully completed, we are trying to document lessons learned. One that still confuses me is the following: We have a database of addresses, and needed to autocomplete when a User started typing in a street name. Using JPA repository, we implemented a PString class (simply a persistent wrapper for a String), and then implemented this interface: @RepositoryRestResource(collectionResourceRel = "locations", path = "locations") public interface LocationRepository