Course And Transaction JPA Repository Implementation

Vue JS and Spring Boot Microservices and Spring Cloud Course Service - (Second Main Microservice)
3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€59.75
List Price:  €85.37
You save:  €25.61
£52.30
List Price:  £74.72
You save:  £22.41
CA$96.54
List Price:  CA$137.93
You save:  CA$41.38
A$105.91
List Price:  A$151.30
You save:  A$45.39
S$90.45
List Price:  S$129.22
You save:  S$38.77
HK$544.53
List Price:  HK$777.94
You save:  HK$233.40
CHF 55.65
List Price:  CHF 79.50
You save:  CHF 23.85
NOK kr713.11
List Price:  NOK kr1,018.77
You save:  NOK kr305.66
DKK kr446.46
List Price:  DKK kr637.83
You save:  DKK kr191.36
NZ$121.74
List Price:  NZ$173.93
You save:  NZ$52.18
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,556.42
List Price:  ৳12,223.99
You save:  ৳3,667.56
₹6,251.01
List Price:  ₹8,930.40
You save:  ₹2,679.38
RM285.34
List Price:  RM407.65
You save:  RM122.31
₦102,002.02
List Price:  ₦145,723.42
You save:  ₦43,721.40
₨19,604.33
List Price:  ₨28,007.39
You save:  ₨8,403.05
฿2,202.51
List Price:  ฿3,146.58
You save:  ฿944.07
₺2,996.27
List Price:  ₺4,280.57
You save:  ₺1,284.29
B$387.19
List Price:  B$553.16
You save:  B$165.96
R1,174.86
List Price:  R1,678.44
You save:  R503.58
Лв116.87
List Price:  Лв166.96
You save:  Лв50.09
₩103,485.08
List Price:  ₩147,842.17
You save:  ₩44,357.08
₪224.59
List Price:  ₪320.86
You save:  ₪96.26
₱4,098.68
List Price:  ₱5,855.51
You save:  ₱1,756.82
¥11,002.60
List Price:  ¥15,718.67
You save:  ¥4,716.07
MX$1,262.14
List Price:  MX$1,803.14
You save:  MX$540.99
QR255.14
List Price:  QR364.51
You save:  QR109.36
P924.59
List Price:  P1,320.90
You save:  P396.31
KSh9,021.71
List Price:  KSh12,888.71
You save:  KSh3,867
E£3,331.19
List Price:  E£4,759.05
You save:  E£1,427.85
ብር10,881.20
List Price:  ብር15,545.24
You save:  ብር4,664.04
Kz63,840.95
List Price:  Kz91,205.27
You save:  Kz27,364.32
CLP$63,627.27
List Price:  CLP$90,899.99
You save:  CLP$27,272.72
CN¥492.78
List Price:  CN¥704
You save:  CN¥211.22
RD$4,396.46
List Price:  RD$6,280.92
You save:  RD$1,884.46
DA9,076.57
List Price:  DA12,967.08
You save:  DA3,890.51
FJ$159.83
List Price:  FJ$228.34
You save:  FJ$68.51
Q535.86
List Price:  Q765.54
You save:  Q229.68
GY$14,637.97
List Price:  GY$20,912.28
You save:  GY$6,274.31
ISK kr8,820.83
List Price:  ISK kr12,601.73
You save:  ISK kr3,780.90
DH641.27
List Price:  DH916.14
You save:  DH274.87
L1,171.48
List Price:  L1,673.62
You save:  L502.13
ден3,677.69
List Price:  ден5,254.07
You save:  ден1,576.37
MOP$560.77
List Price:  MOP$801.13
You save:  MOP$240.36
N$1,173.11
List Price:  N$1,675.94
You save:  N$502.83
C$2,574.59
List Price:  C$3,678.14
You save:  C$1,103.55
रु10,100.17
List Price:  रु14,429.44
You save:  रु4,329.26
S/235.57
List Price:  S/336.54
You save:  S/100.97
K301.57
List Price:  K430.83
You save:  K129.26
SAR262.51
List Price:  SAR375.04
You save:  SAR112.52
ZK1,591.73
List Price:  ZK2,274
You save:  ZK682.26
L304.12
List Price:  L434.48
You save:  L130.35
Kč1,456.02
List Price:  Kč2,080.12
You save:  Kč624.09
Ft23,137.63
List Price:  Ft33,055.18
You save:  Ft9,917.54
SEK kr651.58
List Price:  SEK kr930.87
You save:  SEK kr279.28
ARS$101,536.26
List Price:  ARS$145,058.02
You save:  ARS$43,521.75
Bs483.45
List Price:  Bs690.68
You save:  Bs207.22
COP$270,071.77
List Price:  COP$385,833.35
You save:  COP$115,761.58
₡34,861.29
List Price:  ₡49,803.97
You save:  ₡14,942.68
L1,842.86
List Price:  L2,632.77
You save:  L789.91
₲467,540.75
List Price:  ₲667,943.99
You save:  ₲200,403.24
$U2,747.84
List Price:  $U3,925.66
You save:  $U1,177.81
zł251.55
List Price:  zł359.38
You save:  zł107.82
Already have an account? Log In

Transcript

Hi guys, in this lesson, we will create our requester class for cruise and transaction. To do it first of all, let's create a new package under our main package. Our package name V equals three. On the requester package, we will create the poster interface. Course repository will extend GPA the poster GPA repository is an abstract class implemented by sibling GPA repository. With GP repository sibling will handle basic database operations Automatically like save, update find by ID delete etc.

GP repository has two generic parameters first parameter is for the model class. second parameter is for the ID class off model class. So our model class will be course and our ID class will be long. Our secondary poster class will be transaction repository. Transaction repository will extend GP repository GPT poster has two generic parameters. first parameter is for the model class.

Second parameter is for the ID class of model class. So our model class will be transaction and Id class me luck. Okay, now we can create queries in transaction repository. Our first query will be finding transactions according to user ID. We know that user ID is a field of transaction table. So in GP repository, we can find it with using find by plus, give me so in our case, we can find it like pint all by us in it.

And our parameter will be user ID Our second query we'll be finding transactions according to course ID. Okay, that's all about transaction repository implementations. Thank you.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.