Issue Type: Bug Bug
Affects Versions: 4.1.9, 4.1.8, 4.1.7
Assignee: Unassigned
Components: annotations
Created: 05/Feb/13 9:40 AM
Description:

In JPAOverriddenAnnotationReader.getCacheable:

private Cacheable getCacheable(Element element, XMLContext.Default defaults){
		if(element==null)return null;
		String attValue = element.attributeValue( "cacheable" );
		if(attValue!=null){
			AnnotationDescriptor ad = new AnnotationDescriptor( Cacheable.class );
			ad.setValue( "value", Boolean.valueOf( attValue ) );
			return AnnotationFactory.create( ad );
		}
		if ( defaults.canUseJavaAnnotations() ) {
			return getJavaAnnotation( Cacheable.class );
		}
		else {
			return null;
		}
	}

"element" is always null so it returns null immediately. It should return getJavaAnnotation( Cacheable.class ). The effect of this is that caching using @Cacheable doesn't work.


Andreas

Project: Hibernate ORM
Priority: Major Major
Reporter: Andreas Joseph Krogh
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira