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]
|
[source,java]
|
||||||
----
|
----
|
||||||
@Entity
|
@Entity
|
||||||
@Table(indexes=@Index(columnList="lower(title), year desc, publisher_id"))
|
@Table(indexes=@Index(columnList="(lower(title)), year desc, publisher_id"))
|
||||||
class Book { ... }
|
class Book { ... }
|
||||||
----
|
----
|
||||||
|
|
||||||
This lets us create a customized index for a particular query.
|
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]
|
[TIP]
|
||||||
====
|
====
|
||||||
It's not clear that information about indexes belongs in annotations of Java code.
|
It's not clear that information about indexes belongs in annotations of Java code.
|
||||||
|
|
Loading…
Reference in New Issue