Skip to content

Commit

Permalink
fixes #1035
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Sep 6, 2024
1 parent 2e3b146 commit cd2b6f1
Show file tree
Hide file tree
Showing 71 changed files with 118 additions and 126 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fix for `Document.getFields()` not returning iterable fields
- Fix for failing tests on systems with non-ENGLISH locale #994
- Fix for NPE in `DefaultTransactionalRepository` #1032
- Fix for JPMS issue #1035

## Release 4.3.0 - Jul 1, 2024

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
* limitations under the License.
*/

package org.dizitart.no2.common.mapper;
package org.dizitart.no2.mapper.jackson;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.*;
import org.dizitart.no2.NitriteConfig;
import org.dizitart.no2.collection.Document;
import org.dizitart.no2.common.mapper.modules.NitriteIdModule;
import org.dizitart.no2.common.mapper.NitriteMapper;
import org.dizitart.no2.mapper.jackson.modules.NitriteIdModule;
import org.dizitart.no2.exceptions.ObjectMappingException;
import org.dizitart.no2.exceptions.ValidationException;

Expand All @@ -32,11 +33,11 @@
import static org.dizitart.no2.common.util.ValidationUtils.notNull;

/**
* A {@link NitriteMapper} implementation that uses Jackson ObjectMapper to
* A {@link org.dizitart.no2.common.mapper.NitriteMapper} implementation that uses Jackson ObjectMapper to
* convert objects to and from Nitrite document.
*
* @since 4.0
* @see NitriteMapper
* @see org.dizitart.no2.common.mapper.NitriteMapper
* @author Anindya Chatterjee
*/
public class JacksonMapper implements NitriteMapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.dizitart.no2.common.mapper;
package org.dizitart.no2.mapper.jackson;

import com.fasterxml.jackson.databind.Module;
import org.dizitart.no2.common.module.NitriteModule;
Expand All @@ -25,11 +25,11 @@
import static org.dizitart.no2.common.util.Iterables.setOf;

/**
* A Nitrite module that provides a jackson based {@link NitriteMapper}
* A Nitrite module that provides a jackson based {@link org.dizitart.no2.common.mapper.NitriteMapper}
* implementation for object to document conversion.
*
* @since 4.0
* @see NitriteMapper
* @see org.dizitart.no2.common.mapper.NitriteMapper
* @see JacksonMapper
* @author Anindya Chatterjee
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.dizitart.no2.common.mapper.modules;
package org.dizitart.no2.mapper.jackson.modules;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.dizitart.no2.common.mapper.modules;
package org.dizitart.no2.mapper.jackson.modules;

import com.fasterxml.jackson.databind.module.SimpleModule;
import org.dizitart.no2.collection.NitriteId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.dizitart.no2.common.mapper.modules;
package org.dizitart.no2.mapper.jackson.modules;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package org.dizitart.no2.common.mapper;
package org.dizitart.no2.mapper.jackson;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package org.dizitart.no2.common.mapper;
package org.dizitart.no2.mapper.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
*
*/

package org.dizitart.no2.integration;
package org.dizitart.no2.mapper.jackson.integration;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.collection.Document;
import org.dizitart.no2.collection.NitriteCollection;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.exceptions.IndexingException;
import org.dizitart.no2.exceptions.NitriteIOException;
import org.dizitart.no2.exceptions.ValidationException;
import org.dizitart.no2.index.IndexOptions;
import org.dizitart.no2.index.IndexType;
import org.dizitart.no2.integration.repository.Retry;
import org.dizitart.no2.mapper.jackson.integration.repository.Retry;
import org.dizitart.no2.repository.ObjectRepository;
import org.dizitart.no2.repository.annotations.Id;
import org.dizitart.no2.repository.annotations.Index;
Expand All @@ -47,7 +47,7 @@
import static org.dizitart.no2.common.Constants.INTERNAL_NAME_SEPARATOR;
import static org.dizitart.no2.common.Constants.META_MAP_NAME;
import static org.dizitart.no2.filters.Filter.ALL;
import static org.dizitart.no2.integration.repository.TestUtil.createDb;
import static org.dizitart.no2.mapper.jackson.integration.repository.TestUtil.createDb;
import static org.junit.Assert.*;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
*
*/

package org.dizitart.no2.integration.migrate;
package org.dizitart.no2.mapper.jackson.integration.migrate;

import com.github.javafaker.Faker;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.collection.Document;
import org.dizitart.no2.collection.NitriteCollection;
import org.dizitart.no2.common.Constants;
import org.dizitart.no2.common.Fields;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.exceptions.MigrationException;
import org.dizitart.no2.index.IndexType;
import org.dizitart.no2.integration.repository.Retry;
import org.dizitart.no2.integration.repository.TestUtil;
import org.dizitart.no2.mapper.jackson.integration.repository.Retry;
import org.dizitart.no2.mapper.jackson.integration.repository.TestUtil;
import org.dizitart.no2.migration.InstructionSet;
import org.dizitart.no2.migration.Migration;
import org.dizitart.no2.migration.TypeConverter;
Expand All @@ -42,8 +42,8 @@

import static org.dizitart.no2.filters.FluentFilter.where;
import static org.dizitart.no2.index.IndexOptions.indexOptions;
import static org.dizitart.no2.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.integration.repository.TestUtil.createDb;
import static org.dizitart.no2.mapper.jackson.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.mapper.jackson.integration.repository.TestUtil.createDb;
import static org.junit.Assert.*;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package org.dizitart.no2.integration.migrate;
package org.dizitart.no2.mapper.jackson.integration.migrate;

import lombok.Data;
import org.dizitart.no2.index.IndexType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package org.dizitart.no2.integration.migrate;
package org.dizitart.no2.mapper.jackson.integration.migrate;

import lombok.Data;
import org.dizitart.no2.index.IndexType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import org.dizitart.no2.Nitrite;
import org.dizitart.no2.NitriteBuilder;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.integration.repository.data.*;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.integration.repository.data.*;
import org.dizitart.no2.mvstore.MVStoreModule;
import org.dizitart.no2.mvstore.MVStoreModuleBuilder;
import org.dizitart.no2.repository.ObjectRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.NitriteConfig;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.index.IndexType;
import org.dizitart.no2.integration.repository.data.Company;
import org.dizitart.no2.integration.repository.data.Note;
import org.dizitart.no2.mapper.jackson.integration.repository.data.Company;
import org.dizitart.no2.mapper.jackson.integration.repository.data.Note;
import org.dizitart.no2.mvstore.MVStoreModule;
import org.dizitart.no2.repository.ObjectRepository;
import org.dizitart.no2.repository.annotations.Id;
Expand All @@ -39,7 +39,7 @@
import java.util.Date;

import static org.dizitart.no2.filters.FluentFilter.where;
import static org.dizitart.no2.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.mapper.jackson.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.junit.Assert.assertEquals;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import lombok.Data;
import org.dizitart.no2.repository.annotations.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import lombok.Data;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.NitriteBuilder;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.exceptions.ObjectMappingException;
import org.dizitart.no2.mvstore.MVStoreModule;
import org.dizitart.no2.repository.ObjectRepository;
Expand All @@ -15,7 +15,7 @@
import java.time.LocalDateTime;
import java.util.UUID;

import static org.dizitart.no2.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.mapper.jackson.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import lombok.Data;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.collection.NitriteId;
import org.dizitart.no2.common.WriteResult;
import org.dizitart.no2.common.mapper.JacksonMapper;
import org.dizitart.no2.mapper.jackson.JacksonMapper;
import org.dizitart.no2.common.util.Iterables;
import org.dizitart.no2.exceptions.InvalidIdException;
import org.dizitart.no2.repository.Cursor;
Expand All @@ -33,8 +33,8 @@
import org.junit.Test;

import static org.dizitart.no2.common.module.NitriteModule.module;
import static org.dizitart.no2.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.integration.repository.TestUtil.createDb;
import static org.dizitart.no2.mapper.jackson.integration.repository.BaseObjectRepositoryTest.getRandomTempDbFile;
import static org.dizitart.no2.mapper.jackson.integration.repository.TestUtil.createDb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import org.dizitart.no2.common.RecordStream;
import org.dizitart.no2.exceptions.ValidationException;
import org.dizitart.no2.integration.repository.data.Employee;
import org.dizitart.no2.mapper.jackson.integration.repository.data.Employee;
import org.dizitart.no2.repository.Cursor;
import org.junit.Assert;
import org.junit.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import org.dizitart.no2.Nitrite;
import org.dizitart.no2.collection.NitriteId;
import org.dizitart.no2.common.RecordStream;
import org.dizitart.no2.common.WriteResult;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.exceptions.*;
import org.dizitart.no2.integration.repository.data.*;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.integration.repository.data.*;
import org.dizitart.no2.repository.ObjectRepository;
import org.junit.After;
import org.junit.Before;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import com.github.javafaker.Faker;
import lombok.Data;
import org.dizitart.no2.Nitrite;
import org.dizitart.no2.collection.NitriteCollection;
import org.dizitart.no2.common.mapper.JacksonMapperModule;
import org.dizitart.no2.common.meta.Attributes;
import org.dizitart.no2.exceptions.ValidationException;
import org.dizitart.no2.index.IndexType;
import org.dizitart.no2.integration.repository.data.*;
import org.dizitart.no2.mapper.jackson.JacksonMapperModule;
import org.dizitart.no2.mapper.jackson.integration.repository.data.*;
import org.dizitart.no2.repository.Cursor;
import org.dizitart.no2.repository.ObjectRepository;
import org.dizitart.no2.repository.annotations.Entity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import org.dizitart.no2.common.RecordStream;
import org.dizitart.no2.exceptions.InvalidOperationException;
import org.dizitart.no2.integration.repository.data.SubEmployee;
import org.dizitart.no2.mapper.jackson.integration.repository.data.SubEmployee;
import org.junit.Test;

import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*
*/

package org.dizitart.no2.integration.repository;
package org.dizitart.no2.mapper.jackson.integration.repository;

import org.dizitart.no2.integration.repository.data.Book;
import org.dizitart.no2.integration.repository.data.BookId;
import org.dizitart.no2.mapper.jackson.integration.repository.data.Book;
import org.dizitart.no2.mapper.jackson.integration.repository.data.BookId;
import org.junit.Test;

import java.util.Arrays;
Expand Down
Loading

0 comments on commit cd2b6f1

Please sign in to comment.