Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PA165 - Airport - project
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository 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
Ján Macháček
PA165 - Airport - project
Commits
2eb439fc
There was an error fetching the commit references. Please try again later.
Commit
2eb439fc
authored
1 year ago
by
Martin Slovík
Browse files
Options
Downloads
Patches
Plain Diff
Adding AirplaneType model
parent
f8dce425
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/cz/muni/fi/pa165/core/data/domain/AirplaneType.java
+56
-0
56 additions, 0 deletions
.../java/cz/muni/fi/pa165/core/data/domain/AirplaneType.java
with
56 additions
and
0 deletions
core/src/main/java/cz/muni/fi/pa165/core/data/domain/AirplaneType.java
0 → 100644
+
56
−
0
View file @
2eb439fc
package
cz.muni.fi.pa165.core.data.domain
;
import
jakarta.persistence.*
;
import
java.io.Serializable
;
import
java.util.Objects
;
@Entity
(
name
=
"airplane_type"
)
public
class
AirplaneType
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@Column
(
nullable
=
false
,
unique
=
true
)
private
String
name
;
public
AirplaneType
()
{
}
public
AirplaneType
(
String
name
)
{
this
.
name
=
name
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
{
return
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(!(
o
instanceof
AirplaneType
airplaneType
))
{
return
false
;
}
return
Objects
.
equals
(
getName
(),
airplaneType
.
getName
());
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
getName
());
}
}
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