XSD Eclipse Foundation (Jakarta EE) · 3.0

Jakarta Persistence 3.0

persistence.xml

The persistence.xml of JPA applications (Hibernate, EclipseLink) on the jakarta.persistence namespace.

About

persistence.xml declares persistence units: the entity classes, the data source and provider properties.

Good to know

  • Provider properties are free-form name and value pairs and are not checked.
  • The example is by xmlvalid.com.

Files

1 file · 11.6 KB

Example document

persistence.xml · 721 B · valid against this schema

In CI and from code

The same schema by its name, jakarta-persistence-3.0, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema jakarta-persistence-3.0
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: jakarta-persistence-3.0
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=jakarta-persistence-3.0

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups