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
ed424a21
There was an error fetching the commit references. Please try again later.
Commit
ed424a21
authored
1 year ago
by
Martin Slovík
Browse files
Options
Downloads
Patches
Plain Diff
Changing AirplaneType model
parent
cc03c582
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
+6
-29
6 additions, 29 deletions
.../java/cz/muni/fi/pa165/core/data/domain/AirplaneType.java
with
6 additions
and
29 deletions
core/src/main/java/cz/muni/fi/pa165/core/data/domain/AirplaneType.java
+
6
−
29
View file @
ed424a21
package
cz.muni.fi.pa165.core.data.domain
;
package
cz.muni.fi.pa165.core.data.domain
;
import
cz.muni.fi.pa165.core.data.domain.common.DomainEntity
;
import
jakarta.persistence.*
;
import
jakarta.persistence.*
;
import
lombok.*
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Objects
;
import
java.util.Objects
;
@Entity
(
name
=
"airplane_type"
)
@Entity
(
name
=
"airplane_types"
)
public
class
AirplaneType
implements
Serializable
{
@Data
@NoArgsConstructor
@Id
public
class
AirplaneType
extends
DomainEntity
implements
Serializable
{
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@Column
(
nullable
=
false
,
unique
=
true
)
@Column
(
nullable
=
false
,
unique
=
true
)
private
String
name
;
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
@Override
public
boolean
equals
(
Object
o
)
{
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
{
...
...
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