Add description support for asset properties and update related models
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package be.seeseepuff.pcinv.models;
|
||||
|
||||
import be.seeseepuff.pcinv.meta.AssetInfo;
|
||||
import be.seeseepuff.pcinv.meta.Capacity;
|
||||
import be.seeseepuff.pcinv.meta.Property;
|
||||
import be.seeseepuff.pcinv.meta.*;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -25,16 +23,15 @@ public class RamAsset implements Asset
|
||||
@GeneratedValue
|
||||
private long id;
|
||||
|
||||
/// The generic asset associated with this RAM.
|
||||
@OneToOne(orphanRemoval = true)
|
||||
private GenericAsset asset;
|
||||
|
||||
/// The capacity of the RAM in bytes.
|
||||
@Property("Capacity")
|
||||
@Capacity
|
||||
private Long capacity;
|
||||
|
||||
/// The type of memory. E.g.: DDR2, SDRAM, ISA-8, etc...
|
||||
@Description("The type of memory. E.g.: DDR2, SDRAM, ISA-8, etc...")
|
||||
@Property("Type")
|
||||
@InputList
|
||||
private String type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user