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:cs544.wamp_blog_engine.service.impl.CommentService.java
@Transactional(propagation = Propagation.REQUIRED) @Override public List<Comment> getPostComments(Post post) { return commentDAO.getAllPostComments(post); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.EmployeesCrud.Impl.DoctorCrudServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public DoctorsPersonal remove(DoctorsPersonal entity) { return null; }
From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.TreatmentCrud.Impl.ICUTreatmentCrudServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public ICUTreatment remove(ICUTreatment entity) { return null; }
From source file:org.fits.proweb.business.NewsComponent.java
@Override @Transactional(propagation = Propagation.REQUIRED) public void delNews(int newsID) { newsDao.delNews(newsID); }
From source file:org.watterssoft.appsupport.user.service.UserService.java
@Transactional(propagation = Propagation.REQUIRED) public User getUserByUserName(String username) { return userDao.findByUsername(username); }
From source file:DataBaseAcessLayer.AccountDAOImpl.java
@Override @Transactional(readOnly = false, propagation = Propagation.REQUIRED) public void addAccount(Compte account) { org.hibernate.classic.Session session = hibernateTemplate.getSessionFactory().getCurrentSession(); session.saveOrUpdate(account);/*from ww w. j a v a 2 s . c o m*/ System.out.println(account.toString()); }
From source file:com.mycompany.capstone.dao.RoleDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public Role create(Role role) { jdbcTemplate.update(SQL_CREATE_ROLE, role.getRole()); Integer roleId = jdbcTemplate.queryForObject("SELECT LAST_INSERT_ID()", Integer.class); role.setId(roleId);//from w ww . j a v a2 s. c o m return role; }
From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.PatientsCrud.Impl.TerminalCrudServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public TerminalPatients remove(TerminalPatients entity) { return null; }
From source file:com.xpanxion.userprojecthibernate.dao.UserDaoDbImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public void addUser(UserEntity user) { //enable the new user in Spring security user.setEnabled(1);//from ww w.j a va2 s.c o m currentSession().save(user); //create an authority entry for the new user and make it valid Authority a = new Authority(); a.setUsername(user.getUsername()); a.setAuthority("ROLE_USER"); currentSession().save(a); }
From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.TreatmentCrud.Impl.ComaTreatmentCrudServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED) public ComaTreatment remove(ComaTreatment entity) { return null; }