Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polish-community-beth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beth Davies
polish-community-beth
Commits
9d345994
Commit
9d345994
authored
9 months ago
by
Richard Githuba
Browse files
Options
Downloads
Patches
Plain Diff
redoing the issue 35 as a separate issue
parent
5dc7c327
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+2
-0
2 additions, 0 deletions
build.gradle
src/main/java/polish_community_group_11/polish_community/Categories/Categories.java
+55
-0
55 additions, 0 deletions
...nity_group_11/polish_community/Categories/Categories.java
with
57 additions
and
0 deletions
build.gradle
+
2
−
0
View file @
9d345994
...
@@ -32,6 +32,8 @@ dependencies {
...
@@ -32,6 +32,8 @@ dependencies {
testImplementation
'org.springframework.boot:spring-boot-starter-test'
testImplementation
'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly
'org.junit.platform:junit-platform-launcher'
testRuntimeOnly
'org.junit.platform:junit-platform-launcher'
implementation
'org.springframework.boot:spring-boot-starter-validation'
implementation
'org.springframework.boot:spring-boot-starter-validation'
implementation
'org.springframework.boot:spring-boot-starter-data-jpa'
runtimeOnly
'mysql:mysql-connector-java'
}
}
tasks
.
named
(
'test'
)
{
tasks
.
named
(
'test'
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/polish_community_group_11/polish_community/Categories/Categories.java
0 → 100644
+
55
−
0
View file @
9d345994
package
polish_community_group_11.polish_community.Categories
;
import
jakarta.persistence.*
;
@Entity
@Table
(
name
=
"categories"
)
public
class
Categories
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
int
categoryId
;
@Column
(
nullable
=
false
,
length
=
100
)
private
String
categoryTitle
;
@Column
(
nullable
=
false
,
length
=
255
)
private
String
categoryDescription
;
@Column
(
nullable
=
false
)
private
int
userId
;
// Getters and Setters
public
int
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
int
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getCategoryTitle
()
{
return
categoryTitle
;
}
public
void
setCategoryTitle
(
String
categoryTitle
)
{
this
.
categoryTitle
=
categoryTitle
;
}
public
String
getCategoryDescription
()
{
return
categoryDescription
;
}
public
void
setCategoryDescription
(
String
categoryDescription
)
{
this
.
categoryDescription
=
categoryDescription
;
}
public
int
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
int
userId
)
{
this
.
userId
=
userId
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment