Add description support for asset properties and update related models

This commit is contained in:
2025-06-08 14:47:13 +02:00
parent a490b2a306
commit c8829c5f7c
10 changed files with 94 additions and 26 deletions
@@ -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;
}