31 lines
561 B
Java
31 lines
561 B
Java
package be.seeseepuff.pcinv.models;
|
|
|
|
import be.seeseepuff.pcinv.meta.*;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import jakarta.persistence.*;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
/**
|
|
* Represents a CPU or similar device.
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@AssetInfo(
|
|
displayName = "Custom Device",
|
|
pluralName = "Custom Devices",
|
|
type = "custom"
|
|
)
|
|
@Table(name = "custom_assets")
|
|
public class CustomAsset implements Asset
|
|
{
|
|
@Id
|
|
@GeneratedValue
|
|
@JsonIgnore
|
|
private long id;
|
|
|
|
@OneToOne(orphanRemoval = true)
|
|
private GenericAsset asset;
|
|
}
|