-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 48ebd5a
Showing
259 changed files
with
6,999 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
.metadata/.plugins/org.eclipse.core.resources/.history/10/b08929390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/main/java=UTF-8 | ||
encoding/<project>=UTF-8 |
20 changes: 20 additions & 0 deletions
20
.metadata/.plugins/org.eclipse.core.resources/.history/14/a04029210dca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.entity; | ||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
@Entity | ||
@Table(name="admin_table") | ||
public class Admin { | ||
|
||
@Id | ||
@GeneratedValue | ||
private int aid; | ||
private String firstName; | ||
private String lastName; | ||
private String email; | ||
|
||
|
||
} |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/1a/e06326bd10ca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.service; | ||
|
||
public class AdminService { | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
.metadata/.plugins/org.eclipse.core.resources/.history/1b/4041c0dd0eca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.entity.User; | ||
|
||
public interface UserDAO extends JpaRepository<User, Integer>{ | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
.metadata/.plugins/org.eclipse.core.resources/.history/1e/c01ae2300eca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface UserDAO extends JpaRepository<User, Integer>{ | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
.metadata/.plugins/org.eclipse.core.resources/.history/29/f0e63ad86fcb001c1884f965006c6dcb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/3a/d064a19e67cb001c1884f965006c6dcb
Empty file.
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/3c/00fe767610ca001c12be9a70d08d2bf9
Empty file.
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/43/7056a6d810ca001c12be9a70d08d2bf9
Empty file.
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/43/f0962c390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.source=11 |
4 changes: 4 additions & 0 deletions
4
.metadata/.plugins/org.eclipse.core.resources/.history/44/e06f2c390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/48/f05f13ce0bca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.entity; | ||
|
||
public class User { | ||
|
||
} |
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/4e/f0f1800d0eca001c12be9a70d08d2bf9
Empty file.
109 changes: 109 additions & 0 deletions
109
.metadata/.plugins/org.eclipse.core.resources/.history/5/e03428b968cb001c1884f965006c6dcb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
package com.entity; | ||
|
||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
@Entity | ||
@Table(name="user_table") | ||
public class User { | ||
|
||
@Id | ||
@GeneratedValue | ||
private int uid; | ||
private String firstName; | ||
private String LastName; | ||
private String email; | ||
private long phone; | ||
private String Address; | ||
private String password; | ||
private long accNo; | ||
private String accType; | ||
|
||
public long getAccNo() { | ||
return accNo; | ||
} | ||
public void setAccNo(long accNo) { | ||
this.accNo = accNo; | ||
} | ||
public String getAccType() { | ||
return accType; | ||
} | ||
public void setAccType(String accType) { | ||
this.accType = accType; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
public int getUid() { | ||
return uid; | ||
} | ||
public void setUid(int uid) { | ||
this.uid = uid; | ||
} | ||
public String getFirstName() { | ||
return firstName; | ||
} | ||
public void setFirstName(String firstName) { | ||
this.firstName = firstName; | ||
} | ||
public String getLastName() { | ||
return LastName; | ||
} | ||
public void setLastName(String lastName) { | ||
LastName = lastName; | ||
} | ||
public String getEmail() { | ||
return email; | ||
} | ||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
public long getPhone() { | ||
return phone; | ||
} | ||
public void setPhone(long phone) { | ||
this.phone = phone; | ||
} | ||
public String getAddress() { | ||
return Address; | ||
} | ||
public void setAddress(String address) { | ||
Address = address; | ||
} | ||
public User(int uid, String firstName, String lastName, String email, long phone, String address, String password, | ||
long accNo, String accType) { | ||
super(); | ||
this.uid = uid; | ||
this.firstName = firstName; | ||
LastName = lastName; | ||
this.email = email; | ||
this.phone = phone; | ||
Address = address; | ||
this.password = password; | ||
this.accNo = accNo; | ||
this.accType = accType; | ||
} | ||
public User() { | ||
super(); | ||
// TODO Auto-generated constructor stub | ||
} | ||
@Override | ||
public String toString() { | ||
return "User [uid=" + uid + ", firstName=" + firstName + ", LastName=" + LastName + ", email=" + email | ||
+ ", phone=" + phone + ", Address=" + Address + ", password=" + password + ", accNo=" + accNo | ||
+ ", accType=" + accType + "]"; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
} |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/56/c0dc279f10ca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.service; | ||
|
||
public class UserService { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
.metadata/.plugins/org.eclipse.core.resources/.history/59/20c89fed0dca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface BankDAO extends JpaRepository<T, ID>{ | ||
|
||
} |
85 changes: 85 additions & 0 deletions
85
.metadata/.plugins/org.eclipse.core.resources/.history/5b/107d87f80cca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package com.entity; | ||
|
||
|
||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
@Entity | ||
@Table(name="user_table") | ||
public class User { | ||
|
||
@Id | ||
@GeneratedValue | ||
private int uid; | ||
private String firstName; | ||
private String LastName; | ||
private String email; | ||
private long phone; | ||
private String Address; | ||
private String password; | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
public int getUid() { | ||
return uid; | ||
} | ||
public void setUid(int uid) { | ||
this.uid = uid; | ||
} | ||
public String getFirstName() { | ||
return firstName; | ||
} | ||
public void setFirstName(String firstName) { | ||
this.firstName = firstName; | ||
} | ||
public String getLastName() { | ||
return LastName; | ||
} | ||
public void setLastName(String lastName) { | ||
LastName = lastName; | ||
} | ||
public String getEmail() { | ||
return email; | ||
} | ||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
public long getPhone() { | ||
return phone; | ||
} | ||
public void setPhone(long phone) { | ||
this.phone = phone; | ||
} | ||
public String getAddress() { | ||
return Address; | ||
} | ||
public void setAddress(String address) { | ||
Address = address; | ||
} | ||
|
||
public User(int uid, String firstName, String lastName, String email, long phone, String address, String password) { | ||
super(); | ||
this.uid = uid; | ||
this.firstName = firstName; | ||
LastName = lastName; | ||
this.email = email; | ||
this.phone = phone; | ||
Address = address; | ||
this.password = password; | ||
} | ||
public User() { | ||
super(); | ||
// TODO Auto-generated constructor stub | ||
} | ||
|
||
|
||
|
||
|
||
|
||
} |
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/5e/d08badb00aca001c12be9a70d08d2bf9
Empty file.
7 changes: 7 additions & 0 deletions
7
.metadata/.plugins/org.eclipse.core.resources/.history/6/f03e27470eca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AdminDAO extends JpaRepository<Admin, Integer> { | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/66/20a54f6c0cca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.entity; | ||
|
||
public class Admin { | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
.metadata/.plugins/org.eclipse.core.resources/.history/6f/6093a85d6fcb001c1884f965006c6dcb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.controller; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.entity.User; | ||
import com.service.UserService; | ||
|
||
@RestController | ||
@RequestMapping("/mainapp") | ||
public class UserController { | ||
@Autowired | ||
private UserService userservice; | ||
|
||
@GetMapping("/register") | ||
public ResponseEntity<Object> register(@RequestBody User user){ | ||
String res=userservice.addUsers(user); | ||
if(res=="user added") { | ||
return ResponseEntity.ok(res); | ||
} | ||
else { | ||
return (ResponseEntity<Object>) ResponseEntity.badRequest(); | ||
} | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
.metadata/.plugins/org.eclipse.core.resources/.history/72/90334e3a0aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | ||
org.eclipse.jdt.core.compiler.compliance=11 | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore | ||
org.eclipse.jdt.core.compiler.release=disabled | ||
org.eclipse.jdt.core.compiler.source=11 |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/73/c0833b6b11ca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.service; | ||
|
||
public class AppOwnerService { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
.metadata/.plugins/org.eclipse.core.resources/.history/74/d0cbde1970cb001c1884f965006c6dcb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
server.port=8090 | ||
spring.datasource.url= jdbc:mysql://localhost:3306/pwcdb | ||
spring.datasource.driverClassName=com.mysql.jdbc.Driver | ||
spring.datasource.username = root | ||
spring.datasource.password=root123 | ||
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect | ||
spring.jpa.hibernate.ddl-auto=update |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/87/d0049fed0dca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.repository; | ||
|
||
public interface BankDAO { | ||
|
||
} |
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/90/80018a000eca001c12be9a70d08d2bf9
Empty file.
4 changes: 4 additions & 0 deletions
4
.metadata/.plugins/org.eclipse.core.resources/.history/92/d0d729390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/main/java=UTF-8 | ||
encoding//src/main/resources=UTF-8 | ||
encoding/<project>=UTF-8 |
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/94/f043efac0dca001c12be9a70d08d2bf9
Empty file.
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/95/4053b7610eca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.repository; | ||
|
||
public interface AppOwnerDAO { | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
.metadata/.plugins/org.eclipse.core.resources/.history/9e/00be2c390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.release=disabled | ||
org.eclipse.jdt.core.compiler.source=11 |
5 changes: 5 additions & 0 deletions
5
.metadata/.plugins/org.eclipse.core.resources/.history/a1/c0165a2b0eca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.repository; | ||
|
||
public interface UserDAO { | ||
|
||
} |
Empty file added
0
.metadata/.plugins/org.eclipse.core.resources/.history/a2/507d50bb0eca001c12be9a70d08d2bf9
Empty file.
2 changes: 2 additions & 0 deletions
2
.metadata/.plugins/org.eclipse.core.resources/.history/a8/b0fa2b390aca001c12be9a70d08d2bf9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
Oops, something went wrong.