Skip to content

Commit e006427

Browse files
committed
fix assertion that I believe to be incorrect at least on Postgres
I don't think that's how Postgres arrays actually work
1 parent 2f914a4 commit e006427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/src/main/asciidoc/introduction/Entities.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ class Event {
15211521
}
15221522
----
15231523

1524-
The `@Array` annotation is optional, but it's important to limit the amount of storage space the database allocates to the `ARRAY` column.
1524+
The `@Array` annotation is optional--it lets us specify an upper bound on the length of the `ARRAY` column.
15251525
By writing `@Array(length=7)` here, we specified that DDL should be generated with the column type `TINYINT ARRAY[7]`.
15261526

15271527
Just for fun, we used an enumerated type in the code above, but the array element time may be almost any <<basic-type-list,basic type>>.

0 commit comments

Comments
 (0)