/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = annotation.columns(); this.table = annotation.table(); }
/** * @param locator * the java locator * @param annotation * the annotation * @param name * field column name * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = new String[] { name }; this.table = annotation.table(); }
/** * The Class Department. */ @Entity @Table(name = "department_") public class Department { @ManyToOne Company company; @OneToMany @Index(name = "_index") List<Employee> employees; @Id int id; String name; }
/** * @param locator * the java locator * @param annotation * the annotation * @param name * field column name * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = new String[] { name }; this.table = annotation.table(); }
/** * The Class Department. */ @Entity @Table(name="department_") public class Department { @ManyToOne Company company; @OneToMany @Index(name = "_index") List<Employee> employees; @Id int id; String name; }
/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = annotation.columns(); this.table = annotation.table(); }
/** * @param locator * the java locator * @param annotation * the annotation * @param name * field column name * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = new String[] { name }; this.table = annotation.table(); }
@Index(name = "_index") public List<Department> departments;
/** * @param locator * the java locator * @param annotation * the annotation * * @since 2.0.0 */ public IndexMetadataImpl(AbstractLocator locator, Index annotation) { super(); this.locator = locator; this.name = annotation.name(); this.columnNames = annotation.columns(); this.table = annotation.table(); }
@Index(name = "_index") public List<Department> departments;