You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* implement java.sql.ResultSet
* use the new TODO tag
* finish implementing MongoConnection#prepareStatement(String,int,int)
* sync up with latest main branch
* enrich testing cases
* make testing more robust by making column ordered randomly both during insertion and in $project list
* make use of multi-line formatter to fix spotless issue
* resolve conflict with latest main branch
* Update src/integrationTest/java/com/mongodb/hibernate/jdbc/MongoPreparedStatementIntegrationTests.java
Co-authored-by: Maxim Katcharov <[email protected]>
* add try block to ResultSet in MongoPreparedStatementIntegrationTests
* Update src/integrationTest/java/com/mongodb/hibernate/jdbc/MongoStatementIntegrationTests.java
Co-authored-by: Maxim Katcharov <[email protected]>
* add try block to ResultSet in MongoStatementIntegrationTests; move `rs.next()` after metadata checking
* remove confusing exception message for MongoResultSet#getObject()
* simplify EXAMPLE_MQL to empty doc in MongoConnectionTests's ResultSetSupportTests
* remove confusing `when&&then` without `given` in MongoResultSetTests
* decrease duplication in MongoResultSetTests's method sources
* add exhaustive getXXX() unit testing logic
* remove unnecessary usage of `@Nested` in integration testing cases
* add round-trip testing case to combine PreparedStatement and ResultSet together
* change column index checking exception message
* change SQLException message in MongoStatement#executeQueryCommand()
* rename testing case in MongoResultSetTests to testIsIdempotent()
* clean up adapter classes; add logic and testing case to close ResultSet when the originating Statement is closed
* improve implementation of MongoStatement#executeQueryCommmand by removing the usage of stream
* rename CloseTests to ClosedTests and move the close statement as first statement in each testing cases
* revert back changes to ResultSetAdapter to avoid touching it again and again in the future
* fix conflict with latest main branch
* Update src/test/java/com/mongodb/hibernate/jdbc/MongoResultSetTests.java
Co-authored-by: Maxim Katcharov <[email protected]>
* update based on some code review comments
* rename some methods in MongoResultSetTests
* refactor the MongoResultSetTests#testGetValues() based on @MethodSource
* add validation of "false" BsonBoolean in MongoResultSetTests#testGetValues
* merge in latest main
* refactor getters testing avoiding the usage of MethodSource
* change testing method name from `getOpenPreconditionInvocations`
* improve MongoResultSetTests
* add Getter testing cases into MongoResultSetTests
* switch to testing mode in Java driver
* drop support of the "byte", "short" and "float" sql types for both `MongoPreparedStatement` and `MongoResultSet`
* refactor MongoStatementIntegrationTests and MongoPreparedStatementIntegrationTests to remove code duplication
* refactor JDBC closed and range checking testing code to align with MongoResultSetTests
* remove TODO-HIBERNATE-21 comments from MongoStatement
* add ticket references to `setQueryTimeout()` and `setFetchSize()` implementation; remove unused methods after Hibernate codebase walkthrough
* resolve conflict with latest main
* implemented MongoStatement#getMaxRows() and MongoStatement#setMaxRows(int) methods
* add logic to use maxRows in MongoStatement#executeQueryCommand() and testing cases
* addesses two code review comments by Maxim
* Update src/main/java/com/mongodb/hibernate/jdbc/MongoStatement.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* improve MongoExtension by creating MongoClient only once for top class (not `@Nested` classes)
* add parameter setting checking in MongoPreparedStatement#executeQuery() and MongoPreparedStatement#executeUpdate
* add logic to throw SQLException from PreparedStatement for the 4 Statement methods which accept SQL
* add logic to ensure last open ResultSet is closed when Statement invokes query methods returning ResultSet
* improve coding in MongoStatement#executeQueryCommand()
* move `startTransactionIfNeeded` into try block to catch potential RuntimeException
* rename MongoStatement#getFieldNamesFromProjectDocument to #getFieldNamesFromProjectStage; removed javadoc
* remove MongoStatement#setMaxRows() implementation for it is not used in Hibernate for our dialect
* remove javadocs from adapter classes; add missing adapter methods in ResultSetMetaDataAdapter
* remove ResultSetMetadata stuff and leave ticket references to select native query tickets
* Update src/main/java/com/mongodb/hibernate/jdbc/MongoResultSet.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* make range checking logic consistent between MongoResultSet and MongoPreparedStatement
* make MongoResultSet checkClosed() method consistent with MongoStatement's
* throw exception for MongoResultSet#findColumn until we work on native query
* improve MongoResultSet#close warning message
* rename Function parameter name in MongoResultSet#getValue()
* add missing MongoResultSet#getBytes() implementation
* simplify the implementation of MongoResultSet#wasNull
* clean up jdbc classes
* merge in latest main branch
* code refactor to combine setter and used state into one class in MongoPreparedStatement
* improve the error handling of the 4 forbidden methods accepting SQL in MongoPreparedStatement
* add closing last open ResultSet for all execution methods of MongoStatement and MongoPreparedStatement
* move `lastReadColumnValueWasNull` assignment statement after `toJavaConverter` is applied
* change logic to thrown exception if some field is missing
* change as per review comments
* add unit testing cases to ensure last open resultSet is closed when executeXXX methods are invoked in both MongoPreparedStatement and MongoStatement
* Update src/main/java/com/mongodb/hibernate/jdbc/MongoResultSet.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* improve fields emptiness checking in MongoResultSet
* add `@DynamicInsert` forbidding logic in MongoAdditionalMappingContributor
* add logic to add _id unless suppressed or included explicitly already in $project stage
* Update src/test/java/com/mongodb/hibernate/jdbc/MongoConnectionTests.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* Update src/test/java/com/mongodb/hibernate/jdbc/MongoStatementTests.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* Update src/test/java/com/mongodb/hibernate/jdbc/MongoStatementTests.java
Co-authored-by: Valentin Kovalenko <[email protected]>
* made changes as per code review comments
* fix a compiling error
* fix a spotless issue
* further improvements to some jdbc unit testing classes as per code review comments
* simplify MongoStatement#getFieldNamesFromProjectStage()
---------
Co-authored-by: Maxim Katcharov <[email protected]>
Co-authored-by: Valentin Kovalenko <[email protected]>
0 commit comments