Beispiel #1
0
 @CacheEvict(value = "signonCache", key = "'petstore:signon:'+#user.username")
 public void update(@Valid Signon user) {
   dao.update(user);
 }
Beispiel #2
0
 @Cacheable(value = "signonCache", key = "'petstore:signon:'+#username", unless = "#result==null")
 public Signon findByName(String username) {
   //        return
   // dsl.selectFrom(SIGNON).where(SIGNON.USERNAME.eq(username)).fetchOne().into(Signon.class);
   return dao.fetchOneByUsername(username);
 }