Skip to content

Commit 99145ec

Browse files
kaden-sharpinyrodiere
authored andcommitted
Remove outdated documentation from hibernate-gradle-plugin README
JPA model generation was removed from the hibernate-gradle-plugin in #6632 .
1 parent 0080e17 commit 99145ec

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

tooling/hibernate-gradle-plugin/README.adoc

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ useSameVersion:: Specifies whether to have the plugin inject an `implementation`
3636
sourceSet:: The source-set containing the project's domain model. Only one source-set is supported, although all languages (Java, Kotlin, etc)
3737
within that source-set are considered.
3838

39-
It additionally defines 3 nested DSL extensions related to:
39+
It additionally defines 2 nested DSL extensions related to:
4040

4141
* <<enhance>>
42-
* <<jpa-metamodel>>
4342
* <<hbm-xml>>
4443

4544

@@ -72,47 +71,7 @@ hibernate {
7271
}
7372
----
7473

75-
76-
[[jpa-metamodel]]
77-
== JPA Static Metamodel generation
78-
79-
The plugin can also generate the JPA static metamodel classes based on the application's domain model. To enable
80-
the generation, simply refer to the DSL extension:
81-
82-
[source,groovy]
83-
----
84-
hibernate {
85-
jpaMetamodel
86-
}
87-
----
88-
89-
The generation accepts a number of options:
90-
91-
[source,groovy]
92-
----
93-
hibernate {
94-
jpaMetamodel {
95-
// directory where the generated metamodel source files should be written
96-
// - defaults to `${buildDir}/generated/sources/jpaMetamodel
97-
generationOutputDirectory = "some/other/dir"
98-
99-
// directory where the compiled generated metamodel classes should be written
100-
// - defaults to `${buildDir}/classes/java/jpaMetamodel
101-
compileOutputDirectory = "special/classes/dir"
102-
103-
// should the `jakarta.annotation.Generated` annotation be applied?
104-
// - defaults to true
105-
applyGeneratedAnnotation = true
106-
107-
// error suppressions to be added to the generated source files
108-
// - default is ["raw", "deprecation"]
109-
suppressions = ...
110-
}
111-
}
112-
----
113-
114-
11574
[[hbm-xml]]
11675
== Legacy `hbm.xml` Transformation
11776

118-
Coming soon...
77+
Coming soon...

0 commit comments

Comments
 (0)