Skip to content

Commit fea3b2f

Browse files
committed
HHH-18453 - Fix Java code block highlighting in User Guide
1 parent 903f577 commit fea3b2f

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

documentation/src/main/asciidoc/userguide/appendices/LegacyBasicTypeResolution.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ In these cases, you must explicitly tell Hibernate the `BasicType` to use, via t
148148
[[basic-type-annotation-example]]
149149
.Using `@org.hibernate.annotations.Type`
150150
====
151-
[source, JAVA, indent=0]
151+
[source, java,, indent=0]
152152
----
153153
include::{sourcedir}/basic/ExplicitTypeTest.java[tags=basic-type-annotation-example]
154154
----
@@ -193,7 +193,7 @@ First, we need to extend the `AbstractSingleColumnStandardBasicType` like this:
193193
[[basic-custom-type-BitSetType-example]]
194194
.Custom `BasicType` implementation
195195
====
196-
[source, JAVA, indent=0]
196+
[source, java,, indent=0]
197197
----
198198
include::{sourcedir}/basic/bitset/BitSetType.java[tags=basic-custom-type-BitSetType-example]
199199
----
@@ -206,7 +206,7 @@ On the Java side, we need to use a `BitSetJavaType` instance which can be implem
206206
[[basic-custom-type-BitSetJavaType-example]]
207207
.Custom `JavaType` implementation
208208
====
209-
[source, JAVA, indent=0]
209+
[source, java,, indent=0]
210210
----
211211
include::{sourcedir}/basic/bitset/BitSetJavaType.java[tags=basic-bitset-example-java-type]
212212
----
@@ -219,14 +219,14 @@ The `BasicType` must be registered, and this can be done at bootstrapping time:
219219
[[basic-custom-type-register-BasicType-example]]
220220
.Register a Custom `BasicType` implementation
221221
====
222-
[source, JAVA, indent=0]
222+
[source, java,, indent=0]
223223
----
224224
include::{sourcedir}/basic/bitset/BitSetTypeTest.java[tags=basic-custom-type-register-BasicType-example]
225225
----
226226
227227
or using the `MetadataBuilder`
228228
229-
[source, JAVA, indent=0]
229+
[source, java,, indent=0]
230230
----
231231
include::{sourcedir}/../bootstrap/BootstrapTest.java[tags=basic-custom-type-register-BasicType-example]
232232
----
@@ -237,7 +237,7 @@ With the new `BitSetType` being registered as `bitset`, the entity mapping looks
237237
[[basic-custom-type-BitSetType-mapping-example]]
238238
.Custom `BasicType` mapping
239239
====
240-
[source, JAVA, indent=0]
240+
[source, java,, indent=0]
241241
----
242242
include::{sourcedir}/basic/bitset/BitSetTypeTest.java[tags=basic-custom-type-BitSetType-mapping-example]
243243
----
@@ -248,7 +248,7 @@ To validate this new `BasicType` implementation, we can test it as follows:
248248
[[basic-custom-type-BitSetType-persistence-example]]
249249
.Persisting the custom `BasicType`
250250
====
251-
[source, JAVA, indent=0]
251+
[source, java,, indent=0]
252252
----
253253
include::{sourcedir}/basic/bitset/BitSetTypeTest.java[tags=basic-custom-type-BitSetType-persistence-example]
254254
----
@@ -259,7 +259,7 @@ When executing this unit test, Hibernate generates the following SQL statements:
259259
[[basic-custom-type-BitSetType-persistence-sql-example]]
260260
.Persisting the custom `BasicType`
261261
====
262-
[source, JAVA, indent=0]
262+
[source, java,, indent=0]
263263
----
264264
include::{originalextrasdir}/basic/basic-custom-type-BitSetType-persistence-sql-example.sql[]
265265
----
@@ -275,7 +275,7 @@ The second approach is to implement the `UserType` interface.
275275
[[basic-custom-type-BitSetUserType-example]]
276276
.Custom `UserType` implementation
277277
====
278-
[source, JAVA, indent=0]
278+
[source, java,, indent=0]
279279
----
280280
include::{sourcedir}/basic/bitset/BitSetUserType.java[tags=basic-custom-type-BitSetUserType-example]
281281
----
@@ -286,7 +286,7 @@ The entity mapping looks as follows:
286286
[[basic-custom-type-BitSetUserType-mapping-example]]
287287
.Custom `UserType` mapping
288288
====
289-
[source, JAVA, indent=0]
289+
[source, java,, indent=0]
290290
----
291291
include::{sourcedir}/basic/bitset/BitSetUserTypeTest.java[tags=basic-custom-type-BitSetUserType-mapping-example]
292292
----
@@ -297,14 +297,14 @@ In this example, the `UserType` is registered under the `bitset` name, and this
297297
[[basic-custom-type-register-UserType-example]]
298298
.Register a Custom `UserType` implementation
299299
====
300-
[source, JAVA, indent=0]
300+
[source, java,, indent=0]
301301
----
302302
include::{sourcedir}/basic/bitset/BitSetUserTypeTest.java[tags=basic-custom-type-register-UserType-example]
303303
----
304304
305305
or using the `MetadataBuilder`
306306
307-
[source, JAVA, indent=0]
307+
[source, java,, indent=0]
308308
----
309309
include::{sourcedir}/../bootstrap/BootstrapTest.java[tags=basic-custom-type-register-UserType-example]
310310
----
@@ -315,7 +315,7 @@ When running the previous test case against the `BitSetUserType` entity mapping,
315315
[[basic-custom-type-BitSetUserType-persistence-sql-example]]
316316
.Persisting the custom `BasicType`
317317
====
318-
[source, JAVA, indent=0]
318+
[source, java,, indent=0]
319319
----
320320
include::{originalextrasdir}/basic/basic-custom-type-BitSetUserType-persistence-sql-example.sql[]
321321
----

documentation/src/main/asciidoc/userguide/appendices/Legacy_Native_Queries.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this case, you do _not_ need to call `addEntity()` anymore.
2525

2626
.Execution of a named query
2727
====
28-
[source, JAVA, indent=0]
28+
[source, java,, indent=0]
2929
----
3030
List people = session
3131
.getNamedQuery( "persons" )
@@ -107,7 +107,7 @@ You can, alternatively, use the resultset mapping information in your hbm files
107107

108108
.Programmatically specifying the result mapping information
109109
====
110-
[source, JAVA, indent=0]
110+
[source, java,, indent=0]
111111
----
112112
List cats = session
113113
.createSQLQuery( "select {cat.*}, {kitten.*} from cats cat, cats kitten where kitten.mother = cat.id" )

0 commit comments

Comments
 (0)