Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created May 22, 2016 12:17
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 abhirockzz/ffb4c77e5fed0c676a0377fc864fe0b1 to your computer and use it in GitHub Desktop.
Save abhirockzz/ffb4c77e5fed0c676a0377fc864fe0b1 to your computer and use it in GitHub Desktop.
A simple JPA entity with explicit L2 caching metadata
@Entity
@Table("EMPLOYEES")
@Cacheable(true)
public class Employee {
//rest of the code...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment