Hi Alex. Thank you. Somewhere around minute 10:30 I do a self-injection. But indeed I did not specify explicitly that this is a way to make the @Transactional propagation level work. Thanks for spotting it!
@@ionionescu4791 Hi Ion. The philosophy in EJB is basically the same. When you inject the object (in that case by using @EJB as annotation) and proxy is injected in fact. If you use "this", then the framework doesn't see the annotations anymore. You'll also spot the same behavior in CDI for example as well :)
if my service method is calling different repository multiple times within the method if it is annotated with @Transactional even though i want to run my whole method within the database transaction like in a single transaction Reason being that am doing database queries for pre-conditions here that may no longer be true by the time you hit my controller without a transaction.