Skip to content

Add support for JPA indexes #3101

@PromanSEW

Description

@PromanSEW

Expected behavior

Support indexes in @table:

@Table(name = "table_foo", indexes = @Index(columnList = "bar"))

Actual behavior

Ebean ignores these indexes and supports only own

@Index(columnNames = {"bar"})

Link: https://www.baeldung.com/jpa-indexes

P.S. Ebean @Index annotation generates potentially breaking down evolutions sql (but I did not check):

drop table if exists table_foo cascade;

drop index if exists ix_table_foo_bar;

Dropping table before its indexes? Why?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions