Skip to content

Commit

Permalink
TODOTICKET Remove support for Java EE
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and marko-bekhta committed Sep 25, 2023
1 parent 38a5f75 commit eb3c938
Show file tree
Hide file tree
Showing 31 changed files with 8 additions and 2,903 deletions.
1 change: 0 additions & 1 deletion documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
<hibernateVersion>${version.org.hibernate}</hibernateVersion>
<hibernateDocUrl>${documentation.org.hibernate.url}</hibernateDocUrl>
<javaeeUrl>https://www.oracle.com/java/technologies/java-ee-glance.html</javaeeUrl>
<jpaVersion>${parsed-version.javax.persistence.majorVersion}.${parsed-version.javax.persistence.minorVersion}</jpaVersion>
<hibernateOrm6DocUrl>${documentation.org.hibernate.orm.url}</hibernateOrm6DocUrl>
<hibernateOrm6Version>${version.org.hibernate.orm}</hibernateOrm6Version>
<jakartaUrl>https://jakarta.ee/</jakartaUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ but requires <<other-integrations-orm6,different Maven artifacts>>.
|Jakarta Persistence (for the <<mapper-orm,Hibernate ORM mapper>>
|{jakartaPersistenceVersion}
|
|JPA (Java EE) (for the <<mapper-orm,Hibernate ORM mapper>>
|{jpaVersion}
|Requires <<other-integrations-javaee,different Maven artifacts>>.
|Apache Lucene (for the <<backend-lucene,Lucene backend>>)
|{luceneVersion}
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,9 @@ in particular Jakarta Persistence {jakartaPersistenceVersion} with the <<mapper-
[[other-integrations-javaee]]
== Java EE

Hibernate Search includes legacy support for link:{javaeeUrl}[Java EE],
and it requires only one small change:
when declaring the dependencies of your project,
you must add `-javaee` to some artifact identifiers.

For example, an application using Hibernate ORM and the Elasticsearch backend
will need to update its dependencies as follows:
Hibernate Search no longer supports link:{javaeeUrl}[Java EE].

[source, XML, subs="+attributes"]
----
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core-javaee</artifactId> <!--1-->
<version>{hibernateVersion}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-mapper-orm-javaee</artifactId> <!--2-->
<version>{hibernateSearchVersion}</version>
</dependency>
<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-backend-elasticsearch</artifactId> <!--3-->
<version>{hibernateSearchVersion}</version>
</dependency>
----
<1> Replaces `hibernate-core`.
<2> Replaces `hibernate-search-mapper-orm`.
<3> No replacement necessary: this artifact does not rely on Jakarta EE.

All artifacts relying directly or indirectly on Jakarta EE must be replaced with their Java EE counterpart.
This includes in particular:

* https://in.relation.to/2021/06/04/hibernate-is-jakarta-jpa-2/#get-it[Hibernate ORM artifacts]
* `hibernate-search-mapper-orm` => `hibernate-search-mapper-orm-javaee`
* `hibernate-search-mapper-orm-batch-jsr352-core` => `hibernate-search-mapper-orm-batch-jsr352-core-javaee`
* ...

Artifacts that do not rely on Jakarta EE at all, on the other hand,
do not have a Java EE counterpart and must not be replaced.
These artifacts should be excluded from your replacements in particular:

* `hibernate-search-engine`
* `hibernate-search-backend-lucene`
* `hibernate-search-backend-elasticsearch`
* `hibernate-search-backend-elasticsearch-aws`
* ...
Use <<other-integrations-jakarta,Jakarta EE>> instead.

[[other-integrations-orm6]]
== Hibernate ORM 6
Expand Down
53 changes: 0 additions & 53 deletions javaee/ant-copy-and-transform-sources.xml

This file was deleted.

219 changes: 0 additions & 219 deletions javaee/build/parents/integrationtest/pom.xml

This file was deleted.

0 comments on commit eb3c938

Please sign in to comment.