Skip to content

Instantly share code, notes, and snippets.

@rlubke
Last active October 19, 2021 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlubke/478756ebdcfe5427d42b22593a69077a to your computer and use it in GitHub Desktop.
Save rlubke/478756ebdcfe5427d42b22593a69077a to your computer and use it in GitHub Desktop.
Repository with a generated query
@CoherenceRepository("tasks")
public abstract class TaskRepository
extends AbstractCoherenceRepository<Task, String>
{
/**
* Delete all {@link Task}s that have been completed.
*/
public abstract void deleteByCompletedTrue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment