Files
pcinv/src/main/java/be/seeseepuff/pcinv/models/RamAsset.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

44 lines
879 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 RAM DIMM or similar memory asset in the inventory system.
*/
@Getter
@Setter
@Entity
@AssetInfo(
displayName = "Random Access Memory",
pluralName = "Random Access Memories",
type = "ram"
)
@Table(name = "ram_assets")
public class RamAsset implements Asset
{
@Id
@GeneratedValue
@JsonIgnore
private long id;
@OneToOne(orphanRemoval = true)
private GenericAsset asset;
@Property("Capacity")
@Capacity
private Long capacity;
@Description("The type of memory. E.g.: DDR2, SDRAM, ISA-8, etc...")
@Property("Type")
@InputList
private String type;
@Description("The speed of the memory in MHz.")
@Property("Speed")
private Integer speed;
}