File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
src/main/java/os/expert/sample Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ package os .expert .sample ;
2
+
3
+ import jakarta .enterprise .context .ApplicationScoped ;
4
+ import jakarta .inject .Inject ;
5
+ import org .eclipse .jnosql .mapping .Database ;
6
+ import org .eclipse .jnosql .mapping .DatabaseType ;
7
+
8
+ import java .util .List ;
9
+
10
+ @ ApplicationScoped
11
+ public class GoalService {
12
+
13
+ private final NewYearWishes newYearWishes ;
14
+
15
+ @ Inject
16
+ public GoalService (@ Database (DatabaseType .DOCUMENT ) NewYearWishes newYearWishes ) {
17
+ this .newYearWishes = newYearWishes ;
18
+ }
19
+
20
+ @ Deprecated
21
+ GoalService () {
22
+ this (null );
23
+ }
24
+
25
+ public List <Goal > findGoals (int page , int size ) {
26
+ return null ;
27
+ }
28
+
29
+ public Goal save (Goal goal ) {
30
+ return newYearWishes .save (goal );
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments