Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spring-Boot
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzdin Ahmad
Spring-Boot
Merge requests
!1
Master izzo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Master izzo
masterIzzo
into
main
Overview
0
Commits
5
Pipelines
0
Changes
6
Merged
Izzdin Ahmad
requested to merge
masterIzzo
into
main
1 year ago
Overview
0
Commits
5
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
849b257e
5 commits,
1 year ago
6 files
+
95
−
20
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/main/java/com/example/demo1/City.java
+
2
−
1
Options
@@ -2,8 +2,10 @@ package com.example.demo1;
@@ -2,8 +2,10 @@ package com.example.demo1;
import
jakarta.persistence.*
;
import
jakarta.persistence.*
;
import
lombok.Data
;
//@Data //wenn diese Annotation von lombok benutzt, dann brauchst du die Setter und Getter und Konstruktoren und vieles anderes nicht extra zu implementieren.
@Entity
@Entity
@Table
(
name
=
"cities"
)
@Table
(
name
=
"cities"
)
public
class
City
{
public
class
City
{
@@ -12,7 +14,6 @@ public class City {
@@ -12,7 +14,6 @@ public class City {
private
Long
id
;
private
Long
id
;
private
String
name
;
private
String
name
;
private
boolean
isCapital
;
private
boolean
isCapital
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
Loading