Foreword: All of the following operations are based on the successful installation of the Oracle database and the Java development environment in a normal situation.
If not, configure the underlying environment first.
First step: Configure the required environment (download and import the required packages).
My Baidu cloud disk to share all the required packages, you can directly click to download the full import on it.
Download Link: Http://pan.baidu.com/s/1sjC0vvB
Step Two: Write Hibernate configuration file
It is important to note that the Connection.url configuration xe is the SID of your Oracle database, so you need to replace it with your own.
If you don't know how to query this: Open Oracle's "Run SQL command line" and enter the following command to find out.
The string under name is your SID.
Finally: Run the program to link.
Hibernate Connect to Oracle Database