40 lines
896 B
Java
40 lines
896 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;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@AssetInfo(
|
|
displayName = "Network Interface Controller",
|
|
pluralName = "Network Interface Controllers",
|
|
type = "nic"
|
|
)
|
|
@Table(name = "nic_assets")
|
|
public class NICAsset implements Asset
|
|
{
|
|
@Id
|
|
@GeneratedValue
|
|
@JsonIgnore
|
|
private long id;
|
|
|
|
/// The generic asset associated with this RAM.
|
|
@OneToOne(orphanRemoval = true)
|
|
private GenericAsset asset;
|
|
|
|
@Description("The MAC address of the network interface controller.")
|
|
@Property("MAC Address")
|
|
@HideInOverview
|
|
private String macAddress;
|
|
|
|
@Description("The type of interface used by the drive. E.g.: SATA, IDE, etc.")
|
|
@Property("Interface Type")
|
|
@HideInOverview
|
|
@InputList
|
|
private String interfaceType;
|
|
}
|