> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/install/10.2-install/pentaho-upgrade-cp/post-upgrade-tasks-pentaho-ugrade-cp/setting-up-password-encryption-after-upgrading-pentaho-upgrade-cp/update-your-hibernate-configuration-post-upgrade-task.md).

# Update your Hibernate configuration

The Hibernate configuration file specifies driver and connection information, as well as dialects and how to handle connection closes and timeouts. You must have the latest version of this file for password encryption to work.

Perform the following steps to update the Hibernate configuration file for Pentaho 10.2.

1. Stop the Pentaho Server.

   For instructions on stopping the server, see [Stop and start the Pentaho Server and repository](/install/10.2-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/configure-the-pentaho-server/stop-and-start-the-pentaho-server-and-repository.md).
2. Navigate to the `pentaho/server/pentaho-server/pentaho-solutions/system/hibernate` directory.
3. Perform the following action depending on whether you have previously customized the `hibernate.cfg.xml` file for your database type:
   * If you have not customized the `hibernate.cfg.xml` file, replace the existing version of the file with the `hibernate.cfg.xml.merge.post-upgrade` file. The `hibernate.cfg.xml.merge.post-upgrade` file is the 10.2 version of the file.
   * If you have customized the `hibernate.cfg.xml` file before upgrading and you have not yet applied these customizations to the 10.2 version of the file, merge your customizations into the `hibernate.cfg.xml` file. See [Apply customizations](/install/10.2-install/pentaho-upgrade-cp/post-upgrade-tasks-pentaho-ugrade-cp/apply-customizations-post-upgrade-tasks.md) for instructions.
4. Restart the server and confirm no errors occurred.

   Depending on the error, you may need to contact your customer support representative for help.

Hibernate now has the Pentaho 10.2 version of this file for password encryption to work.

After setting up Tomcat, Quartz, and Hibernate to work with password encryption, you can now use encrypted passwords with Pentaho 10.2 products. See [Use password encryption with Pentaho](/install/10.2-install/pentaho-configuration/tasks-to-be-performed-by-an-it-administrator/use-password-encryption-with-pentaho.md) for instructions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/install/10.2-install/pentaho-upgrade-cp/post-upgrade-tasks-pentaho-ugrade-cp/setting-up-password-encryption-after-upgrading-pentaho-upgrade-cp/update-your-hibernate-configuration-post-upgrade-task.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
