Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NotificationSVC
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
abdullh.alsoleman
NotificationSVC
Commits
0b1c4a22
Commit
0b1c4a22
authored
Jul 17, 2024
by
Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add notification models
parent
7622c82c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
Notification.java
...ain/java/com/ali/notificationsvc/models/Notification.java
+33
-0
application.properties
src/main/resources/application.properties
+6
-0
No files found.
src/main/java/com/ali/notificationsvc/models/Notification.java
0 → 100644
View file @
0b1c4a22
package
com
.
ali
.
notificationsvc
.
models
;
import
jakarta.persistence.Entity
;
import
jakarta.persistence.Id
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
@Entity
public
class
Notification
{
@Id
private
int
id
;
private
int
jobId
;
private
int
companyId
;
private
int
jobseekerId
;
private
String
details
;
private
boolean
isRead
;
private
boolean
toCompany
;
private
LocalDateTime
createdAt
;
public
Notification
(
int
id
,
int
jobId
,
int
companyId
,
int
jobseekerId
,
String
details
,
boolean
isRead
,
boolean
toCompany
,
LocalDateTime
createdAt
)
{
this
.
id
=
id
;
this
.
jobId
=
jobId
;
this
.
companyId
=
companyId
;
this
.
jobseekerId
=
jobseekerId
;
this
.
details
=
details
;
this
.
isRead
=
isRead
;
this
.
toCompany
=
toCompany
;
this
.
createdAt
=
createdAt
;
}
public
Notification
()
{
}
}
src/main/resources/application.properties
View file @
0b1c4a22
spring.application.name
=
notificationsvc
spring.application.name
=
notificationsvc
spring.cloud.config.import-check.enabled
=
false
server.port
=
8090
spring.datasource.url
=
jdbc:mysql://localhost:3306/notificationSVCDB
spring.datasource.username
=
root
spring.datasource.password
=
ali123
spring.jpa.hibernate.ddl-auto
=
update
\ 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