* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user