2025-03-15 21:50:36 +03:00

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
}