From 6d0549b448b898e68d2d41d220e25cacc4e8720b Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 19 May 2015 19:15:07 +0100 Subject: [PATCH] HHH-9772 - Add @Retention( RUNTIME) so ListIndexBase annotation is available to AnnotationBinder --- .../main/java/org/hibernate/annotations/ListIndexBase.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/ListIndexBase.java b/hibernate-core/src/main/java/org/hibernate/annotations/ListIndexBase.java index 3865525466..bee72f212b 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/ListIndexBase.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/ListIndexBase.java @@ -6,6 +6,11 @@ */ package org.hibernate.annotations; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +import static java.lang.annotation.RetentionPolicy.RUNTIME; + /** * Defines the start index value for a list index as stored on the database. This base is subtracted from the * incoming database value on reads to determine the List position; it is added to the List position index when @@ -19,6 +24,7 @@ package org.hibernate.annotations; * * @author Steve Ebersole */ +@Retention( RUNTIME ) public @interface ListIndexBase { /** * The list index base. Default is 0.