Skip to content

Commit

Permalink
Merge branch 'main' into Balance-Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Motouom authored Jun 13, 2024
2 parents 8aade64 + a286eba commit 6e6bdf6
Show file tree
Hide file tree
Showing 22 changed files with 1,666 additions and 1,232 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.adorsys.gis.powerpay.powerpaybackend.domain;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.*;

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class Procedure {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
package com.adorsys.gis.powerpay.powerpaybackend.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.*;

@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String phoneNumber;
private String pin;
private String userName;

public Long getId(){
return id;
}

public void setId(Long id){
this.id = id;
}

public String getPhoneNumber() {
return phoneNumber;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.Optional;

@Repository
public interface UserRepository extends JpaRepository<User, String> {
public interface UserRepository extends JpaRepository<User, Long> {

Optional<User> findByPhoneNumber(String phoneNumber);
}
8 changes: 7 additions & 1 deletion power-pay-backend/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
spring:
application:
name: e2e-banking-app
profile:
active: dev,postgres

management:
endpoints:
web:
exposure:
include: health, metrics
endpoint:
health:
show-details: always
show-details: always
2 changes: 1 addition & 1 deletion power-pay-frontend/dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ define(['./workbox-b5f7729d'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.e7p0g793m68"
"revision": "0.238rr2rpmug"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
2 changes: 1 addition & 1 deletion power-pay-frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="manifest" href="/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title></title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading

0 comments on commit 6e6bdf6

Please sign in to comment.