Browse Source

@Entity no longer required with spring-aspect

This commits complements 222d2b1 for another required dependency.

javax.persistence.Entity was previously required, regardless of which
aspects were actually used by the project. It is now optional and will
not break the build if it is not present. Note that the side effect is that
AnnotationDrivenStaticEntityMockingControl is disabled as well if the
JPA API is not available.

Issue: SPR-6819
pull/672/merge
Stephane Nicoll 11 years ago
parent
commit
d9df50c6cd
  1. 3
      spring-aspects/src/main/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj

3
spring-aspects/src/main/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj

@ -16,6 +16,8 @@ @@ -16,6 +16,8 @@
package org.springframework.mock.staticmock;
import org.aspectj.lang.annotation.RequiredTypes;
/**
* Annotation-based aspect to use in test builds to enable mocking of static methods
* on JPA-annotated {@code @Entity} classes, as used by Spring Roo for so-called
@ -57,6 +59,7 @@ package org.springframework.mock.staticmock; @@ -57,6 +59,7 @@ package org.springframework.mock.staticmock;
* @author Sam Brannen
* @see MockStaticEntityMethods
*/
@RequiredTypes("javax.persistence.Entity")
public aspect AnnotationDrivenStaticEntityMockingControl extends AbstractMethodMockingControl {
/**

Loading…
Cancel
Save