Skip to content

Commit 6e4b4ac

Browse files
committed
tiny fix to code example
1 parent 70626c1 commit 6e4b4ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ List<String> tags;
658658
----
659659
@ElementCollection
660660
@CollectionTable(name = "author_bios", // table name
661-
joinColumns = @JoinColumn(name = "book_ssn")) // column holding foreign key of owner
661+
joinColumns = @JoinColumn(name = "book_isbn")) // column holding foreign key of owner
662662
@Column(name="bio") // column holding map values
663663
@MapKeyJoinColumn(name="author_ssn") // column holding map keys
664664
Map<Author,String> biographies;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ Note that SQL expressions like `lower(title)` must be enclosed in parentheses in
10411041
====
10421042
It's not clear that information about indexes belongs in annotations of Java code.
10431043
Indexes are usually maintained and modified by a database administrator, ideally by an expert in tuning the performance of one particular RDBMS.
1044-
So it might be better to keep the definition of indexes a SQL DDL script that your DBA can easily read and modify.
1044+
So it might be better to keep the definition of indexes in a SQL DDL script that your DBA can easily read and modify.
10451045
<<automatic-schema-export,Remember>>, we can ask Hibernate to execute a DDL script using the property `javax.persistence.schema-generation.create-script-source`.
10461046
====
10471047

0 commit comments

Comments
 (0)