AspectJ not working with classes without interface
<p>I'm trying to execute a method before the setter of a class noted with @Entity is called.
So I have this code by now:</p>

<pre><code>@Component
@Aspect
public class Observable {

 @Before("execution(* br.com.persistence.Transaction.setStatus(..))")
 public void beforeSetStatus(JoinPoint joinPoint) {
  System.out.println(joinPoint.getSignature().getName());
 }
}
</code></pre>

<p>My pom.xml:</p>

<pre><code>          &lt;dependency&gt;
              &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
              &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
              &lt;artifactId&gt;aspectjtools&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;org.springframework&lt;/groupId&gt;
             &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
             &lt;version&gt;${spring.version}&lt;/version&gt;
        &lt;/dependency&gt;
        ...
        &lt;plugin&gt;
            &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
            &lt;artifactId&gt;aspectj-maven-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.7&lt;/version&gt;
            &lt;configuration&gt;
                &lt;source&gt;1.6&lt;/source&gt;
                &lt;target&gt;1.6&lt;/target&gt;
                &lt;complianceLevel&gt;1.6&lt;/complianceLevel&gt;
            &lt;/configuration&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;goals&gt;
                        &lt;goal&gt;compile&lt;/goal&gt;
                    &lt;/goals&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
            &lt;dependencies&gt;
                &lt;dependency&gt;
                    &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                    &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
                    &lt;version&gt;1.8.5&lt;/version&gt;
                &lt;/dependency&gt;
                &lt;dependency&gt;
                    &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                    &lt;artifactId&gt;aspectjtools&lt;/artifactId&gt;
                    &lt;version&gt;1.8.5&lt;/version&gt;
                &lt;/dependency&gt;
            &lt;/dependencies&gt;
        &lt;/plugin&gt;
</code></pre>

<p>And in spring.xml I added:</p>

<pre><code>&lt;aop:aspectj-autoproxy proxy-target-class="true"/&gt;
</code></pre>

<p>If I try to pointcut an interface, it works right, but it doesn't work with classes in persistence. I don't know if it is because they don't implement an interface or because of the @Entity annotation thats troubling.</p>