Skip to content

Commit

Permalink
Merge pull request #12136 from mkurz/jpa_mig_docs
Browse files Browse the repository at this point in the history
Mention JPA provider in migration notes
  • Loading branch information
mkurz committed Oct 25, 2023
2 parents 78cf4f1 + c7d34cb commit ae58398
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions documentation/manual/releases/release29/migration29/Migration29.md
Expand Up @@ -191,6 +191,20 @@ To:
<property name="jakarta.persistence.jdbc.driver" value="..."/>
```

Additionally, we have received [reports](https://github.com/orgs/playframework/discussions/11985#discussioncomment-7379124) indicating that it may be necessary, if applicable, to change the provider in the configuration from:

```xml
<provider>org.hibernate.ejb.HibernatePersistence</provider>
```

to:

```xml
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
```

in order to ensure that Hibernate works properly with Play 2.9.

> Although `version="3.0"` and `persistence_3_0.xsd` are used, this XML declaration is correct for the [latest](https://jakarta.ee/specifications/persistence/3.1/) Jakarta Persistence 3.1. This is because in Jakarta Persistence 3.1, the `persistence.xml` schema remains unchanged. To avoid duplication, the 3.0 schema is reused for the version update: https://jakarta.ee/xml/ns/persistence/
#### JPA Bean Validation Not Currently Supported in Play 2.9
Expand Down

0 comments on commit ae58398

Please sign in to comment.