Skip to content

Commit

Permalink
update MongoConnectionProvider as per code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanQingyangXu committed Nov 9, 2024
1 parent 8ac4c4f commit 9e0a33a
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@
* href="https://www.mongodb.com/docs/manual/reference/connection-string/">connection string</a>, in which database name
* must be provided to align with JDBC URL's convention. The other two JDBC properties are optional.
*
* <table>
* <tr><th>Property</th><th>Description</th><th>Required</th></tr>
* <tr>
* <td>{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_URL jakarta.persistence.jdbc.url}</td>
* <td>MongoDB <a href="https://www.mongodb.com/docs/manual/reference/connection-string/">connection string</a></td>
* <td>✓</td>
* </tr>
* <tr>
* <td>{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_USER jakarta.persistence.jdbc.user}</td>
* <td>{@code userName} for <a href="https://mongodb.github.io/mongo-java-driver/5.2/apidocs/mongodb-driver-core/com/mongodb/MongoCredential.html#createCredential">MongoCredential.createCredential</a></td>
* <td></td>
* </tr>
* <tr>
* <td>{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_PASSWORD jakarta.persistence.jdbc.password}</td>
* <td>{@code password} for <a href="https://mongodb.github.io/mongo-java-driver/5.2/apidocs/mongodb-driver-core/com/mongodb/MongoCredential.html#createCredential">MongoCredential.createCredential</a></td>
* <td></td>
* </tr>
* </table>
*
* @see ConnectionProvider
* @see JdbcSettings#JAKARTA_JDBC_URL
* @see JdbcSettings#JAKARTA_JDBC_USER
Expand Down

0 comments on commit 9e0a33a

Please sign in to comment.