Files
pcinv/src/main/java/be/seeseepuff/pcinv/models/NICAsset.java
T
seeseemelk 7fca7c4ff0
Build / build (push) Successful in 2m43s
Deploy / build (push) Successful in 2m24s
Adding api
2025-06-09 19:49:44 +02:00

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;
}