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:dao.DAOEscuela.java
/** * /*from w w w . java2s . com*/ * @param _escuela */ @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.GuardarEscuelaException.class) public void guardarEscuela(Escuela _escuela) { em.persist(_escuela); }
From source file:cs544.letmegiveexam.service.UserService.java
@Transactional(propagation = Propagation.REQUIRED) public User getUserById(Long Id) { return (User) userDAO.get(Id); }
From source file:com.oak_yoga_studio.service.impl.ProductServiceImpl.java
@Transactional(propagation = Propagation.REQUIRED) @Override public List<Product> searchProductByName(String pname) { //TODO return null; }
From source file:com.healthcit.analytics.businessdelegate.ReportTemplateManager.java
@Transactional(readOnly = true, propagation = Propagation.REQUIRED) public JSONArray getAllReports(Long userId) { List<ReportTemplate> templates = reportTemplateDao.findAllReportTemplates(userId); JSONArray jsonArray = new JSONArray(); for (ReportTemplate template : templates) { jsonArray.add(template.toJSON()); }/*from w w w .ja v a2 s .c o m*/ return jsonArray; }
From source file:org.fits.proweb.business.UserRoleComponent.java
@Override @Transactional(propagation = Propagation.REQUIRED) public UserRole getUserRole(int roleID) { return userRoleDao.getUserRole(roleID); }
From source file:com.milos.neo4j.dao.impl.GameDAOImpl.java
@Transactional(readOnly = false, propagation = Propagation.REQUIRED) @Override// w w w . j av a 2 s. c o m public void deleteOldGames() { Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.WEEK_OF_MONTH, -1); String deleteQuery = "MATCH (n:UserGameScores)--(g:Game) where g.creationDate <= {date} detach delete n, g"; Map<String, Long> params = new HashMap<>(); params.put("date", calendar.getTimeInMillis()); session.query(deleteQuery, params, false); }
From source file:cs544.letmegiveexam.service.SettingService.java
@Transactional(propagation = Propagation.REQUIRED) public Setting getSetting() { long Id = 1; return (Setting) settingDao.get(Id); }
From source file:inc.cygnus.service.impl.ProductServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public Product save(Product product) { return productDao.saveBase(product); }
From source file:inc.cygnus.service.impl.PurchaseServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public Purchase save(Purchase purchase) { return purchaseDao.saveBase(purchase); }
From source file:inc.cygnus.service.impl.CustomerServiceImpl.java
@Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public Customer save(Customer customer) { return customerDao.saveBase(customer); }