I have my services like this annotated with @Transactional
@Transactional
@Service
public class Contact_Service {
....
In my Controller i don't have @Transactional
and sometimes i use some persistence layer methods directely to search and persist my object and everything is okey :
@Controller
public class GestionAO {
....
@RequestMapping(...)
public String alerte() {
contact_respository.findOne(...) ;
...
contact_respository.save(...) ;
My question since my controller is not in a transaction will i got some problems ?
Can my object don't get saved in some cases ?
Will i got concurrence problem ?