money.rave.common.backend.entity.wallet.WalletShareId.kt Maven / Gradle / Ivy
package money.rave.common.backend.entity.wallet
import java.io.Serializable
import javax.persistence.Column
import javax.persistence.Embeddable
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
@Embeddable
data class WalletShareId(
@ManyToOne
@JoinColumn(name = "wallet_id", referencedColumnName = "id", insertable = false, updatable = false, nullable = false)
val wallet: Wallet,
@ManyToOne
@JoinColumn(name = "share_holder_wallet_id", referencedColumnName = "id", insertable = false, updatable = false, nullable = false)
val shareHolderWallet: Wallet,
@Column(name = "asset", nullable = false, length = 64)
val asset: String,
) : Serializable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy