Skip to content
Snippets Groups Projects
Commit 2be134a2 authored by Martin Slovík's avatar Martin Slovík
Browse files

Renaming OpenAPI DomainEntityDto, creating model DomainEntity

parent 2eb439fc
No related branches found
No related tags found
No related merge requests found
......@@ -1415,7 +1415,7 @@ paths:
$ref: '#/components/schemas/ErrorMessage'
components:
schemas:
DomainEntity:
DomainEntityDto:
title: Domain Entity
description: Represents a Domain Entity
type: object
......@@ -1431,7 +1431,7 @@ components:
propertyName: objectType
ErrorMessage:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
title: Error Message
description: Response body for HTML statuses.
type: object
......@@ -1460,7 +1460,7 @@ components:
example: /api/stewards/1
StewardDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Steward
description: Represents a steward on a flight.
......@@ -1500,7 +1500,7 @@ components:
example: Doe
FlightDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Flight
description: Represents a flight.
......@@ -1554,7 +1554,7 @@ components:
example: 2022-12-22T12:04:04.493908908+01:00
AirplaneTypeDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Airplane Type
description: Represents an Airplane Type.
......@@ -1579,7 +1579,7 @@ components:
example: Boeing 747
AirplaneDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Airplane
description: Represents an Airplane.
......@@ -1681,7 +1681,7 @@ components:
type: boolean
CountryDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Country
description: Represents a country.
......@@ -1706,7 +1706,7 @@ components:
example: Canada
CityDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: City
description: Represents a City in a Country containing Airports.
......@@ -1753,7 +1753,7 @@ components:
example: 2.17403
AirportDto:
allOf:
- $ref: '#/components/schemas/DomainEntity'
- $ref: '#/components/schemas/DomainEntityDto'
type: object
title: Airport
description: Represents an Airport.
......
package cz.muni.fi.pa165.core.data.domain.common;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
@MappedSuperclass
@Data
public class DomainEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment