Skip to content

Hibernate ucp sample#345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 13, 2024

Conversation

sreekarareddy
Copy link
Contributor

Adds a new sample hibernate project that shows a demo of how to configure UCP in a standalone hibernate application through config/properties file. This configuration is achieved using the "hibernate-ucp" module added in Hibernate version 6.5.

@oracle-contributor-agreementOracle Contributor Agreement

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

  • PR author: sreekarareddy

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreementoracle-contributor-agreementbot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Apr 15, 2024
@oracle-contributor-agreementoracle-contributor-agreementbot added OCA Verified All contributors have signed the Oracle Contributor Agreement. and removed OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. labels Apr 15, 2024
@gvenzlgvenzl added the Java label Apr 17, 2024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file also used? Or just the xml config one?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the files are used. hibernate.properties file is loaded by default

<property name="connection.url">url</property>
<property name="connection.username">user</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have both connection.driver_class and oracleucp.connectionFactoryClassName? It looks redundant.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

driver_class is mandatory for hibernate

…roperties file. Updated dependency library versions in pom.xml
@jeandelavarenejeandelavarene merged commit 150e7fc into oracle-samples:mainMay 13, 2024
1 check passed
ibre5041 pushed a commit to ibre5041/oracle-db-examples that referenced this pull request Jun 19, 2024
* Sample hibernate application to configure ucp as a datasource * Update Readme.md * Update pom.xml * Made some fixes to the propeties * Made some fixes to the propeties * fixed the dependency scope * Fixed the properties in config file and proeprties file * Fixed ucp dependency * Removed hibernate.cfg.xml file and adjusted properties in hibernate.properties file. Updated dependency library versions in pom.xml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaOCA VerifiedAll contributors have signed the Oracle Contributor Agreement.
3 participants
@sreekarareddy@jeandelavarene@gvenzl
close