From 9e0a33ad0390f429f61f49c526465fd52df4afcf Mon Sep 17 00:00:00 2001 From: Nathan Xu Date: Fri, 8 Nov 2024 21:38:44 -0500 Subject: [PATCH] update MongoConnectionProvider as per code review comments --- .../jdbc/MongoConnectionProvider.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/com/mongodb/hibernate/jdbc/MongoConnectionProvider.java b/src/main/java/com/mongodb/hibernate/jdbc/MongoConnectionProvider.java index 90b9c5d..604a476 100644 --- a/src/main/java/com/mongodb/hibernate/jdbc/MongoConnectionProvider.java +++ b/src/main/java/com/mongodb/hibernate/jdbc/MongoConnectionProvider.java @@ -51,6 +51,25 @@ * href="https://www.mongodb.com/docs/manual/reference/connection-string/">connection string, in which database name * must be provided to align with JDBC URL's convention. The other two JDBC properties are optional. * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
PropertyDescriptionRequired
{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_URL jakarta.persistence.jdbc.url}MongoDB connection string
{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_USER jakarta.persistence.jdbc.user}{@code userName} for MongoCredential.createCredential
{@linkplain org.hibernate.cfg.JdbcSettings#JAKARTA_JDBC_PASSWORD jakarta.persistence.jdbc.password}{@code password} for MongoCredential.createCredential
+ * * @see ConnectionProvider * @see JdbcSettings#JAKARTA_JDBC_URL * @see JdbcSettings#JAKARTA_JDBC_USER