Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
awa-w5d5-microservices
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
StudentAddressDetails
awa-w5d5-microservices
Commits
97379c3e
Commit
97379c3e
authored
Apr 02, 2021
by
earndt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[W5D5] (ArndtED) Adds sql seed data; repository interface
parent
1c965264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
StudentAddressRepository.java
...ntaddressservice/repository/StudentAddressRepository.java
+10
-0
studentaddress.sql
...ent-address-service/src/main/resources/studentaddress.sql
+15
-0
No files found.
student-address-service/src/main/java/service/student/studentaddressservice/repository/StudentAddressRepository.java
0 → 100644
View file @
97379c3e
package
service
.
student
.
studentaddressservice
.
repository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.stereotype.Repository
;
import
service.student.studentaddressservice.model.StudentAddress
;
@Repository
public
interface
StudentAddressRepository
extends
JpaRepository
<
StudentAddress
,
Long
>
{
}
student-address-service/src/main/resources/studentaddress.sql
View file @
97379c3e
DROP
TABLE
IF
EXISTS
ADDRESS
;
CREATE
TABLE
ADDRESS
(
ID
INT
AUTO_INCREMENT
PRIMARY
KEY
,
EMAIL
VARCHAR
(
255
)
PRIMARY
KEY
,
STREET_ADDRESS
VARCHAR
(
255
)
NOT
NULL
,
STATE
VARCHAR
(
255
)
NOT
NULL
,
CITY
VARCHAR
(
255
)
NOT
NULL
,
ZIP
VARCHAR
(
255
)
NOT
NULL
,
APT_NUM
VARCHAR
(
255
)
);
INSERT
INTO
ADDRESS
VALUES
(
1
,
'faker1@fakemail.com'
,
'867 Fake Ln'
,
'CA'
,
'Fremont'
,
'90210'
),
(
2
,
'faker2@fakemail.com'
,
'868 Fake Ln'
,
'CA'
,
'Fremont'
,
'90210'
),
(
3
,
'faker3@fakemail.com'
,
'869 Fake Ln'
,
'CA'
,
'Fremont'
,
'90210'
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment