1 package org.hibernate.annotations; 2 3 import java.lang.annotation.Retention ; 4 import java.lang.annotation.Target ; 5 import static java.lang.annotation.ElementType.TYPE ; 6 import static java.lang.annotation.ElementType.FIELD ; 7 import static java.lang.annotation.ElementType.METHOD ; 8 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 9 10 14 @Target ({TYPE, FIELD, METHOD}) @Retention (RUNTIME) 15 public @interface Index { 16 String name(); 17 String [] columnNames() default {}; 18 } 19 | Popular Tags |