You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2015/06/14 18:48:00 UTC

[jira] [Closed] (DELTASPIKE-926) Partial beans ignore interceptor bindings from stereotypes

     [ https://issues.apache.org/jira/browse/DELTASPIKE-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Andraschko closed DELTASPIKE-926.
----------------------------------------

> Partial beans ignore interceptor bindings from stereotypes
> ----------------------------------------------------------
>
>                 Key: DELTASPIKE-926
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-926
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: PartialBean
>    Affects Versions: 1.4.0
>            Reporter: Harald Wellmann
>
> h3. Scenario
> Given a transactional repository
> {code}
> @Repository
> @Dependent
> @Transactional
> public abstract class CustomerDao extends AbstractEntityRepository<Customer, Long> 
> {code}
> I'd like to reduce the number of annotations by using a stereotype.
> {code}
> @Stereotype
> @Dependent
> @Transactional
> @Inherited
> @Target({ TYPE })
> @Retention(RUNTIME)
> @Documented
> public @interface Dao { }
> {code}
> so that my repository can be simplified to 
> {code}
> @Repository
> @Dao
> public abstract class CustomerDao extends AbstractEntityRepository<Customer, Long> 
> {code}
> h3. Expected Behaviour
> The {{@Dao @Repository}} works just like the original version.
> h3. Actual Behaviour
> There is a {{TransactionRequiredException}} when calling the {{save()}} method. The interceptor binding on the stereotype has no effect.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)