use proper alias
This commit is contained in:
@@ -34,13 +34,16 @@ class Property(
|
||||
@Column(name = "is_active", nullable = false)
|
||||
var active: Boolean = true,
|
||||
|
||||
@Column(name = "address_text")
|
||||
var addressText: String? = null,
|
||||
|
||||
@ElementCollection(fetch = FetchType.EAGER)
|
||||
@CollectionTable(
|
||||
name = "property_email_alias",
|
||||
joinColumns = [JoinColumn(name = "property_id")]
|
||||
)
|
||||
@Column(name = "alias", nullable = false)
|
||||
var emailAliases: MutableSet<String> = mutableSetOf(),
|
||||
var otaAliases: MutableSet<String> = mutableSetOf(),
|
||||
|
||||
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
||||
val createdAt: OffsetDateTime = OffsetDateTime.now()
|
||||
|
||||
@@ -32,6 +32,14 @@ class RoomType(
|
||||
@Column(name = "max_occupancy", nullable = false)
|
||||
var maxOccupancy: Int = 3,
|
||||
|
||||
@ElementCollection(fetch = FetchType.EAGER)
|
||||
@CollectionTable(
|
||||
name = "room_type_alias",
|
||||
joinColumns = [JoinColumn(name = "room_type_id")]
|
||||
)
|
||||
@Column(name = "alias", nullable = false)
|
||||
var otaAliases: MutableSet<String> = mutableSetOf(),
|
||||
|
||||
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
||||
val createdAt: OffsetDateTime = OffsetDateTime.now()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user