44 lines
879 B
Java
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;
|
|
}
|