Skip to content

Loading…

DDC-86: Allow to generate index for an entity property #5381

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

There is a unique option, but no index option for fields. This way you can't control the generation of indexes for fields which are used in queries often via the schema file and schema tool.

@doctrinebot

Comment created by romanb:

There is @Table(...., indexes={...})

I know you probably mean the "shortcut" in the @Column annotation. You think there should be shortcut for indexing, too? I think its far less common to index a normal field (non-pk, non-fk) than to make it unique. I will take a look whether there is an index option on the Column annotation in the JPA spec, just to see.

@doctrinebot

Comment created by @beberlei:

indexes={} is enough I guess, haven't found it :-)

However i think indexes is not supported in SchemaTool

@doctrinebot

Issue was closed with resolution "Invalid"

@doctrinebot

Comment created by ascarius:

By this way, mappedSuperclasses could finally add indexes...

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.