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

[jira] [Created] (DELTASPIKE-927) Partial beans ignore interceptor bindings from stereotypes

Harald Wellmann created DELTASPIKE-927:
------------------------------------------

             Summary: Partial beans ignore interceptor bindings from stereotypes
                 Key: DELTASPIKE-927
                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-927
             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)