forked from umur/waa-june-2024-project
-
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.
Merge pull request #1 from hariclerry/entity-edit
entity-edit
- Loading branch information
Showing
18 changed files
with
150 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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,8 @@ | ||
package com.waa.project.enums; | ||
|
||
public enum AccountStatusType { | ||
|
||
Active, | ||
Banned, | ||
Inactive | ||
} |
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.waa.project.enums; | ||
|
||
public enum GenderType { | ||
|
||
Male, | ||
Female | ||
} |
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
spring.application.name=project | ||
|
||
spring.datasource.url=jdbc:mysql://localhost:3306/waa-demo | ||
spring.datasource.username=root | ||
spring.datasource.password= | ||
|
||
spring.datasource.password=root | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect | ||
|
||
spring.jpa.hibernate.ddl-auto=create-drop | ||
spring.jpa.show-sql=true | ||
|
||
spring.jpa.defer-datasource-initialization=true | ||
spring.sql.init.mode=always |
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,22 @@ | ||
spring: | ||
application: | ||
name: project | ||
|
||
datasource: | ||
url: jdbc:mysql://localhost:3306/waa-demo | ||
username: root | ||
password: root | ||
driver-class-name: com.mysql.jdbc.Driver | ||
|
||
jpa: | ||
properties: | ||
hibernate: | ||
dialect: org.hibernate.dialect.MySQLDialect | ||
hibernate: | ||
ddl-auto: create-drop | ||
show-sql: true | ||
defer-datasource-initialization: true | ||
|
||
sql: | ||
init: | ||
mode: always |
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,26 @@ | ||
insert into majors (id,name,description) value (1, 'Compro', 'IT and Computer Science'); | ||
insert into majors (id,name,description) value (2, 'MBA', 'Business Management'); | ||
|
||
INSERT into feedback_categories(name, description) VALUES ("University Feedback", "Feedback on University in general"); | ||
INSERT into feedback_categories(name, description) VALUES ("Faculity Feedback", "Feedback to Faculity in general"); | ||
|
||
INSERT into discussion_categories(name, description) VALUES("Life in USA", "Personal experiences sharing being in USA"); | ||
INSERT into discussion_categories(name, description) VALUES("Persoanl Health", "Importantce of personal health"); | ||
|
||
-- temp | ||
insert into users(id,username,password,first_name,last_name,email,birth_date,gender_type,account_status,role_type) | ||
values (1,"student1","123","Student","1","student1@gmail.com",null,"Male","Active","STUDENT"); | ||
|
||
-- temp | ||
insert into students(id,student_code,major_id,academic_years,picture) values (1,"159880", 1 , "2024", "1234"); | ||
|
||
--temp | ||
insert into achievements(student_id,achievements) values (1, "Successfully completed 4 Subject Master Course on Campus"); | ||
|
||
--temp | ||
insert into interests(student_id,interest) values (1, "Coding"); | ||
insert into interests(student_id,interest) values (1, "Swimming"); | ||
insert into interests(student_id,interest) values (1, "Learning New Technology"); | ||
|
||
--temp | ||
insert into extra_activities(student_id,extra_activities) values (1, "Social Party"); |