File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/test/java/org/soujava/demos/mongodb/document Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 55import jakarta .enterprise .inject .Alternative ;
66import jakarta .enterprise .inject .Default ;
77import jakarta .enterprise .inject .Produces ;
8+ import jakarta .enterprise .inject .Typed ;
89import jakarta .interceptor .Interceptor ;
910import org .eclipse .jnosql .communication .semistructured .DatabaseManager ;
11+ import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentManager ;
1012import org .eclipse .jnosql .mapping .Database ;
1113import org .eclipse .jnosql .mapping .DatabaseType ;
1214
@@ -20,7 +22,8 @@ public class ManagerSupplier implements Supplier<DatabaseManager> {
2022 @ Produces
2123 @ Database (DatabaseType .DOCUMENT )
2224 @ Default
23- public DatabaseManager get () {
25+ @ Typed ({DatabaseManager .class , MongoDBDocumentManager .class })
26+ public MongoDBDocumentManager get () {
2427 return DatabaseContainer .INSTANCE .get ("database" );
2528 }
2629}
You can’t perform that action at this time.
0 commit comments