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.35
List Price:  €84.80
You save:  €25.44
£51.20
List Price:  £73.15
You save:  £21.94
CA$95.67
List Price:  CA$136.68
You save:  CA$41
A$100.09
List Price:  A$143
You save:  A$42.90
S$88.99
List Price:  S$127.14
You save:  S$38.14
HK$546.78
List Price:  HK$781.15
You save:  HK$234.37
CHF 54.38
List Price:  CHF 77.69
You save:  CHF 23.31
NOK kr676.97
List Price:  NOK kr967.15
You save:  NOK kr290.17
DKK kr443.32
List Price:  DKK kr633.35
You save:  DKK kr190.02
NZ$116.10
List Price:  NZ$165.87
You save:  NZ$49.76
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,549.48
List Price:  ৳12,214.06
You save:  ৳3,664.58
₹6,317.74
List Price:  ₹9,025.73
You save:  ₹2,707.99
RM275.23
List Price:  RM393.21
You save:  RM117.97
₦97,105.52
List Price:  ₦138,728.12
You save:  ₦41,622.60
₨19,565.36
List Price:  ₨27,951.71
You save:  ₨8,386.35
฿2,209.77
List Price:  ฿3,156.95
You save:  ฿947.18
₺3,043.57
List Price:  ₺4,348.14
You save:  ₺1,304.57
B$365.95
List Price:  B$522.81
You save:  B$156.86
R1,119.08
List Price:  R1,598.76
You save:  R479.67
Лв116.05
List Price:  Лв165.80
You save:  Лв49.74
₩101,386.60
List Price:  ₩144,844.20
You save:  ₩43,457.60
₪216.28
List Price:  ₪308.99
You save:  ₪92.70
₱4,136.82
List Price:  ₱5,910
You save:  ₱1,773.17
¥10,908.98
List Price:  ¥15,584.92
You save:  ¥4,675.94
MX$1,211.49
List Price:  MX$1,730.78
You save:  MX$519.28
QR254.38
List Price:  QR363.42
You save:  QR109.03
P925.51
List Price:  P1,322.22
You save:  P396.70
KSh9,028.71
List Price:  KSh12,898.71
You save:  KSh3,870
E£3,286.02
List Price:  E£4,694.52
You save:  E£1,408.49
ብር10,851.43
List Price:  ብር15,502.71
You save:  ብር4,651.27
Kz63,851.17
List Price:  Kz91,219.87
You save:  Kz27,368.70
CLP$60,428.66
List Price:  CLP$86,330.36
You save:  CLP$25,901.70
CN¥485.56
List Price:  CN¥693.70
You save:  CN¥208.13
RD$4,443.26
List Price:  RD$6,347.79
You save:  RD$1,904.52
DA9,096.67
List Price:  DA12,995.80
You save:  DA3,899.13
FJ$154.06
List Price:  FJ$220.10
You save:  FJ$66.03
Q536.59
List Price:  Q766.59
You save:  Q230
GY$14,636.33
List Price:  GY$20,909.94
You save:  GY$6,273.61
ISK kr8,607.37
List Price:  ISK kr12,296.77
You save:  ISK kr3,689.40
DH641.71
List Price:  DH916.77
You save:  DH275.06
L1,177.89
List Price:  L1,682.77
You save:  L504.88
ден3,658.67
List Price:  ден5,226.90
You save:  ден1,568.22
MOP$562.96
List Price:  MOP$804.27
You save:  MOP$241.30
N$1,120.50
List Price:  N$1,600.79
You save:  N$480.28
C$2,574.63
List Price:  C$3,678.21
You save:  C$1,103.57
रु10,292.91
List Price:  रु14,704.79
You save:  रु4,411.87
S/235.50
List Price:  S/336.45
You save:  S/100.94
K299.72
List Price:  K428.19
You save:  K128.47
SAR262.45
List Price:  SAR374.94
You save:  SAR112.49
ZK1,372.89
List Price:  ZK1,961.36
You save:  ZK588.46
L302.41
List Price:  L432.04
You save:  L129.62
Kč1,443.94
List Price:  Kč2,062.86
You save:  Kč618.92
Ft22,601.83
List Price:  Ft32,289.72
You save:  Ft9,687.88
SEK kr624.53
List Price:  SEK kr892.23
You save:  SEK kr267.69
ARS$101,380.52
List Price:  ARS$144,835.52
You save:  ARS$43,455
Bs487.46
List Price:  Bs696.40
You save:  Bs208.94
COP$254,082.59
List Price:  COP$362,990.69
You save:  COP$108,908.10
₡34,743.62
List Price:  ₡49,635.87
You save:  ₡14,892.25
L1,848.30
List Price:  L2,640.54
You save:  L792.24
₲464,126.60
List Price:  ₲663,066.42
You save:  ₲198,939.82
$U2,698.07
List Price:  $U3,854.56
You save:  $U1,156.48
zł250.46
List Price:  zł357.81
You save:  zł107.35
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.