You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/introduction/Advanced.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -466,7 +466,7 @@ Furthermore, the link:{doc-javadoc-url}org/hibernate/annotations/ValueGeneration
466
466
[NOTE]
467
467
// .The older APIs are still available in Hibernate 6
468
468
====
469
-
These APIs are new in Hibernate 6, and supersede the classic `IdentifierGenerator` interface and `@GenericGenerator` annotation from older versions of Hibernate.
469
+
These APIs were new in Hibernate 6, and supersede the classic `IdentifierGenerator` interface and `@GenericGenerator` annotation from older versions of Hibernate.
470
470
However, the older APIs are still available and custom ``IdentifierGenerator``s written for older versions of Hibernate continue to work in Hibernate 6.
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/introduction/Configuration.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ First, add the following dependency to your project:
54
54
org.hibernate.orm:hibernate-core:{version}
55
55
----
56
56
57
-
Where `{version}` is the version of Hibernate you're using.
57
+
Where `{version}` is the version of Hibernate you're using, `{fullVersion}`, for example.
58
58
59
59
You'll also need to add a dependency for the JDBC
60
60
driver for your database.
@@ -307,7 +307,7 @@ The properties you really do need to get started are these three:
307
307
[IMPORTANT]
308
308
// .You don't need `hibernate.dialect` anymore!
309
309
====
310
-
In Hibernate 6, you don't need to specify `hibernate.dialect`.
310
+
Since Hibernate 6, you don't need to specify `hibernate.dialect`.
311
311
The correct Hibernate SQL `Dialect` will be determined for you automatically.
312
312
The only reason to specify this property is if you're using a custom user-written `Dialect` class.
313
313
@@ -509,7 +509,7 @@ So, if you're working with SQL Server, you might need to force Hibernate to use
509
509
| `hibernate.use_nationalized_character_data` | Use `nchar` and `nvarchar` instead of `char` and `varchar`
510
510
|===
511
511
512
-
On the other hand, if only _some_ columns store nationalized data, use the `@Nationalized` annotation to indicate fields of your entities which map these columns.
512
+
On the other hand, if only _some_ columns store nationalized data, use the link:{doc-javadoc-url}org/hibernate/annotations/Nationalized.html[`@Nationalized`] annotation to indicate fields of your entities which map these columns.
513
513
514
514
[TIP]
515
515
// .Configuring SQL Server to use UTF-8 by default
The `@Basic` annotation explicitly specifies that an attribute is basic, but it's often not needed, since attributes are assumed basic by default.
@@ -807,7 +807,7 @@ The types defined by the JDBC specification are enumerated by the integer type c
807
807
Each JDBC type is an abstraction of a commonly-available type in SQL.
808
808
For example, `Types.VARCHAR` represents the SQL type `VARCHAR` (or `VARCHAR2` on Oracle).
809
809
810
-
Since Hibernate understands more SQL types than JDBC, there's an extended list of integer type codes in the class `org.hibernate.type.SqlTypes`.
810
+
Since Hibernate understands more SQL types than JDBC, there's an extended list of integer type codes in the class link:{doc-javadoc-url}org/hibernate/type/SqlTypes.html[`org.hibernate.type.SqlTypes`].
811
811
For example, `SqlTypes.GEOMETRY` represents the spatial data type `GEOMETRY`.
Typically, the Hibernate-native APIs offer something a little extra that's missing in JPA, so this isn't exactly a _flaw_.
@@ -103,7 +104,7 @@ If you're completely new to Hibernate and JPA, you might already be wondering ho
103
104
Well, typically, our persistence-related code comes in two layers:
104
105
105
106
. a representation of our data model in Java, which takes the form of a set of annotated entity classes, and
106
-
. a larger number of functions which interact with Hibernate's APIs to perform the persistence operations associated with your various transactions.
107
+
. a larger number of functions which interact with Hibernate's APIs to perform the persistence operations associated with our various transactions.
107
108
108
109
The first part, the data or "domain" model, is usually easier to write, but doing a great and very clean job of it will strongly affect your success in the second part.
0 commit comments