Skip to content

Instantly share code, notes, and snippets.

@Tcharl
Last active March 26, 2016 14:10
Show Gist options
  • Select an option

  • Save Tcharl/346ce65959d8876f7c63 to your computer and use it in GitHub Desktop.

Select an option

Save Tcharl/346ce65959d8876f7c63 to your computer and use it in GitHub Desktop.
Repository interface
/**
* JPA accessible interface by business or route module
* (see business module for JMS or REST export, don't forget the
* osgi.bnd cxf package export).
* @author charliemordant
*/
public interface HelloRepository extends JpaRepository<HelloEntity, Long>
{
/**
* Finds by message.
*
* @param message
* message
* @return corresponding entities
*/
Collection<? extends HelloEntity> findByHelloObjectMessage(String message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment