File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
jnosql-mongodb/src/test/java/org/eclipse/jnosql/databases/mongodb Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313 * Otavio Santana
1414 * Alessandro Moscatelli
1515 */
16- package org .eclipse .jnosql .databases .mongodb .mapping ;
16+ package org .eclipse .jnosql .databases .mongodb .integration ;
1717
1818import jakarta .nosql .Column ;
19+ import jakarta .nosql .Entity ;
1920import jakarta .nosql .Id ;
2021
2122import java .util .UUID ;
2223
23- public record Book (@ Id UUID id , @ Column String title , @ Column String author ) {
24+ @ Entity
25+ public record MongoDBBook (@ Id UUID id , @ Column String title , @ Column String author ) {
2426}
Original file line number Diff line number Diff line change 2525import org .eclipse .jnosql .communication .semistructured .Element ;
2626import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentManager ;
2727import org .eclipse .jnosql .mapping .core .Converters ;
28+ import org .eclipse .jnosql .mapping .core .spi .EntityMetadataExtension ;
2829import org .eclipse .jnosql .mapping .document .DocumentTemplate ;
2930import org .eclipse .jnosql .mapping .document .spi .DocumentExtension ;
3031import org .eclipse .jnosql .mapping .metadata .EntitiesMetadata ;
3132import org .eclipse .jnosql .mapping .metadata .EntityMetadata ;
3233import org .eclipse .jnosql .mapping .reflection .Reflections ;
33- import org .eclipse .jnosql .mapping .core .spi .EntityMetadataExtension ;
3434import org .eclipse .jnosql .mapping .semistructured .EntityConverter ;
3535import org .eclipse .jnosql .mapping .semistructured .EventPersistManager ;
3636import org .jboss .weld .junit5 .auto .AddExtensions ;
@@ -243,5 +243,4 @@ void shouldReturnErrorOnCountByFilterMethod() {
243243 assertThrows (NullPointerException .class , () -> template .count ((Class <Person >) null , filter ));
244244 assertThrows (NullPointerException .class , () -> template .count (Person .class , null ));
245245 }
246-
247246}
You can’t perform that action at this time.
0 commit comments