List of usage examples for org.springframework.transaction.annotation Propagation REQUIRED
Propagation REQUIRED
To view the source code for org.springframework.transaction.annotation Propagation REQUIRED.
Click Source Link
From source file:de.randi2.utility.logging.LogServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public void logSubjectAction(LogEntry.ActionType action, String username, Trial trial, TrialSubject trialSubject) {//from w w w.j a v a 2 s.com LogEntry entry = new LogEntry(); entry.setAction(action); entry.setUsername(username); entry.setClazz(trial.getClass()); entry.setIdentifier(trial.getId()); entry.setValue(trialSubject.toString()); entry.setUiName(trialSubject.getUIName()); entityManager.persist(entry); }
From source file:com.github.carlomicieli.service.hibernate.TeamServiceImpl.java
/** * Delete a team from the repository./* w w w .jav a 2 s . co m*/ * @param team the team to delete. */ @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void deleteTeam(Team team) { teamDAO.deleteTeam(team); }
From source file:com.lewischooman.services.IMovieShowSrv.java
@Transactional(value = "txManager", propagation = Propagation.REQUIRED)
MovieShowDB getMovieShowById(Integer movieShowId);
From source file:com.jfootball.business.impl.PlayerServiceImpl.java
@Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void saveEntity(Serializable obj) { Player player = (Player) obj;/*w w w . j ava2 s . com*/ if (player.getImage() == null && player.getId() != null) { Long id = player.getId(); Player p = getEntityByID(id); byte[] image = p.getImage(); player.setImage(image); } playerDAO.saveOrUpdatePlayer(player); }
From source file:com.mycompany.capstone.dao.HashtagDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Hashtag getByTag(String tag) { return jdbcTemplate.queryForObject(SQL_GET_HASHTAG_BY_NAME, new HashtagMapper(), tag); }
From source file:com.swcguild.vendingmachinemvc.dao.VendingMachineDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public Item addItem(Item item) { jdbcTemplate.update(SQL_INSERT_ITEM, item.getName(), item.getQuantity(), item.getPennyCost()); item.setItemId(jdbcTemplate.queryForObject("select LAST_INSERT_ID()", Integer.class)); return item;// ww w . j a v a 2s . c o m }
From source file:com.bsb.cms.content.service.content.impl.ContAttributeServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Long create(ContAttribute record) { contAttributeMapper.insert(record); return record.getId(); }
From source file:org.watterssoft.appsupport.application.service.ApplicationService.java
@Transactional(propagation = Propagation.REQUIRED) public List<UserApplication> getAllUserApplications(String username) { return userApplicationDao.findUserApplicationByUserName(username); }
From source file:com.bsb.cms.moss.service.impl.auth.SysUserServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public int deleteById(Long sysUserId) { return sysUserMapper.deleteById(sysUserId); }