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:com.github.carlomicieli.service.hibernate.TeamServiceImpl.java
/** * Add a new team to the repository./*from w ww .ja v a 2 s . co m*/ * @param team the new team. */ @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void addTeam(Team team) { teamDAO.addTeam(team); }
From source file:com.cimpoint.mes.server.repositories.FormRepository.java
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public EForm createForm(String name, Set<EFormField> formFields, TrxInfo trxInfo) throws Exception { EForm e = new EForm(name, formFields); this.create(e, trxInfo); return e;/*from www.ja v a2 s. c o m*/ }
From source file:com.Services.Impl.SportRecords.SoccerRecords_CrudImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Soccer_records remove(Soccer_records entity) { return null; }
From source file:at.ac.tuwien.ifs.tita.dao.test.util.NativeSqlExecutorDao.java
/** {@inheritDoc} */ @Override/* w ww . jav a 2 s .c o m*/ @Transactional(propagation = Propagation.REQUIRED) public void executeSql(String query) { Session session = getSession(); SQLQuery q; q = session.createSQLQuery(query.toUpperCase()); q.executeUpdate(); }
From source file:com.crm.earnify.services.IGenericEarnifyServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Collection<E> getAll() { return this.i_generic_dao.getAll(); }
From source file:com.mycompany.capstone.dao.RoleDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Role get(int id) { return jdbcTemplate.queryForObject(SQL_GET_ROLE_BY_ID, new RoleMapper(), id); }
From source file:de.randi2.utility.logging.LogServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public void logChange(LogEntry.ActionType action, String username, AbstractDomainObject value) { LogEntry entry = new LogEntry(); entry.setAction(action);//from ww w . j a v a 2 s .co m entry.setUsername(username); entry.setClazz(value.getClass()); entry.setIdentifier(value.getId()); entry.setValue(value.toString()); entry.setUiName(value.getUIName()); entityManager.persist(entry); }
From source file:com.github.carlomicieli.service.hibernate.PlayerServiceImpl.java
/** * Add a new player./*from ww w .ja va 2 s.c o m*/ * @param player the player. */ @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void addPlayer(Player player) { getDAO().addPlayer(player); }
From source file:com.lewischooman.services.ITheaterSrv.java
@Transactional(value = "txManager", propagation = Propagation.REQUIRED)
List<TheaterDB> getTheaterSelectItems();
From source file:DataBaseAcessLayer.AccountDAOImpl.java
@Override @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void removeAccount(Compte account) { org.hibernate.classic.Session session = hibernateTemplate.getSessionFactory().getCurrentSession(); session.delete(account);/*from w ww .j a va 2s .c o m*/ System.out.println(account.toString()); }