Skip to content

Commit

Permalink
tiny fix to code example
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Sep 4, 2023
1 parent 70626c1 commit 6e4b4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/src/main/asciidoc/introduction/Advanced.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ List<String> tags;
----
@ElementCollection
@CollectionTable(name = "author_bios", // table name
joinColumns = @JoinColumn(name = "book_ssn")) // column holding foreign key of owner
joinColumns = @JoinColumn(name = "book_isbn")) // column holding foreign key of owner
@Column(name="bio") // column holding map values
@MapKeyJoinColumn(name="author_ssn") // column holding map keys
Map<Author,String> biographies;
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/main/asciidoc/introduction/Tuning.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ Note that SQL expressions like `lower(title)` must be enclosed in parentheses in
====
It's not clear that information about indexes belongs in annotations of Java code.
Indexes are usually maintained and modified by a database administrator, ideally by an expert in tuning the performance of one particular RDBMS.
So it might be better to keep the definition of indexes a SQL DDL script that your DBA can easily read and modify.
So it might be better to keep the definition of indexes in a SQL DDL script that your DBA can easily read and modify.
<<automatic-schema-export,Remember>>, we can ask Hibernate to execute a DDL script using the property `javax.persistence.schema-generation.create-script-source`.
====

Expand Down

0 comments on commit 6e4b4ac

Please sign in to comment.