Skip to content

Commit

Permalink
fix assertion that I believe to be incorrect at least on Postgres
Browse files Browse the repository at this point in the history
I don't think that's how Postgres arrays actually work
  • Loading branch information
gavinking committed Dec 23, 2024
1 parent 2f914a4 commit e006427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/src/main/asciidoc/introduction/Entities.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ class Event {
}
----

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

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>>.
Expand Down

0 comments on commit e006427

Please sign in to comment.