BAEL-4723 Defining Indexes in JPA #2 (#10254)

* BAEL-4723 Defining Indexes in JPA

* unit -> integration test

* whitespaces fix

* tab to space

Co-authored-by: mateusz.szablak <mateusz.szablak@accenture.com>
This commit is contained in:
Mateusz Szablak
2020-11-16 06:26:38 +01:00
committed by GitHub
parent f440cf900c
commit ad30d29ed6
2 changed files with 21 additions and 21 deletions
@@ -10,13 +10,13 @@ import java.util.Objects;
@Entity
@Table(indexes = {
@Index(columnList = "firstName"),
@Index(name = "fn_index", columnList = "id"),
@Index(name = "multiIndex1", columnList = "firstName, lastName"),
@Index(name = "multiIndex2", columnList = "lastName, firstName"),
@Index(name = "multiSortIndex", columnList = "firstName, lastName DESC"),
@Index(name = "uniqueIndex", columnList = "firstName", unique = true),
@Index(name = "uniqueMultiIndex", columnList = "firstName, lastName", unique = true)
@Index(columnList = "firstName"),
@Index(name = "fn_index", columnList = "id"),
@Index(name = "multiIndex1", columnList = "firstName, lastName"),
@Index(name = "multiIndex2", columnList = "lastName, firstName"),
@Index(name = "multiSortIndex", columnList = "firstName, lastName DESC"),
@Index(name = "uniqueIndex", columnList = "firstName", unique = true),
@Index(name = "uniqueMultiIndex", columnList = "firstName, lastName", unique = true)
})
public class Student implements Serializable {
@Id