| | |
| | | @Resource |
| | | private LoginUserDao loginUserDao; |
| | | |
| | | public VideoDetailUtil getVideoDetailUtil() { |
| | | return videoDetailUtil; |
| | | } |
| | | |
| | | public void setVideoDetailUtil(VideoDetailUtil videoDetailUtil) { |
| | | this.videoDetailUtil = videoDetailUtil; |
| | | } |
| | | |
| | | public AttentionDao getAttentionDao() { |
| | | return attentionDao; |
| | | } |
| | | |
| | | public void setAttentionDao(AttentionDao attentionDao) { |
| | | this.attentionDao = attentionDao; |
| | | } |
| | | |
| | | @SuppressWarnings("unchecked") |
| | | @Caching(evict = { |
| | | @CacheEvict(value = "attentionCache", key = "'isAddAttention'+'-'+#attention.loginUser.id+'-'+#attention.videoInfo.id"), |
| | |
| | | } catch (Exception e) { |
| | | isS = false; |
| | | e.printStackTrace(); |
| | | if (session.getTransaction().isActive()) |
| | | session.getTransaction().rollback(); |
| | | } |
| | | return isS; |