27 lines
600 B
Kotlin
27 lines
600 B
Kotlin
package com.dowstats.data.entities
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore
|
|
import java.math.BigDecimal
|
|
import jakarta.persistence.*
|
|
|
|
|
|
@Entity
|
|
@Table(name = "weapons_armors_piercing")
|
|
class WeaponArmorPiercing {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
var id: Long? = null
|
|
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
@JsonIgnore
|
|
@JoinColumn(name = "weapon_id")
|
|
var weapon: Weapon? = null
|
|
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
@JoinColumn(name = "armor_type_id")
|
|
var armorType: ArmorType? = null
|
|
|
|
var piercingValue: BigDecimal? = null
|
|
}
|