mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-03 16:29:13 +00:00
document a (possibly temporary) restriction
This commit is contained in:
parent
49495c2a54
commit
8461ba2078
@ -1029,12 +1029,14 @@ It's even possible to specify an ordering for an indexed column, or that the ind
|
||||
[source,java]
|
||||
----
|
||||
@Entity
|
||||
@Table(indexes=@Index(columnList="lower(title), year desc, publisher_id"))
|
||||
@Table(indexes=@Index(columnList="(lower(title)), year desc, publisher_id"))
|
||||
class Book { ... }
|
||||
----
|
||||
|
||||
This lets us create a customized index for a particular query.
|
||||
|
||||
Note that SQL expressions like `lower(title)` must be enclosed in parentheses in the `columnList` of the index definition.
|
||||
|
||||
[TIP]
|
||||
====
|
||||
It's not clear that information about indexes belongs in annotations of Java code.
|
||||
|
Loading…
x
Reference in New Issue
Block a user