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 5
5
import jakarta .enterprise .inject .Alternative ;
6
6
import jakarta .enterprise .inject .Default ;
7
7
import jakarta .enterprise .inject .Produces ;
8
+ import jakarta .enterprise .inject .Typed ;
8
9
import jakarta .interceptor .Interceptor ;
9
10
import org .eclipse .jnosql .communication .semistructured .DatabaseManager ;
11
+ import org .eclipse .jnosql .databases .mongodb .communication .MongoDBDocumentManager ;
10
12
import org .eclipse .jnosql .mapping .Database ;
11
13
import org .eclipse .jnosql .mapping .DatabaseType ;
12
14
@@ -20,7 +22,8 @@ public class ManagerSupplier implements Supplier<DatabaseManager> {
20
22
@ Produces
21
23
@ Database (DatabaseType .DOCUMENT )
22
24
@ Default
23
- public DatabaseManager get () {
25
+ @ Typed ({DatabaseManager .class , MongoDBDocumentManager .class })
26
+ public MongoDBDocumentManager get () {
24
27
return DatabaseContainer .INSTANCE .get ("database" );
25
28
}
26
29
}
You can’t perform that action at this time.
0 commit comments