Add floppy drive asset
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
package be.seeseepuff.pcinv.models;
|
||||
|
||||
import be.seeseepuff.pcinv.meta.*;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@AssetInfo(
|
||||
displayName = "Floppy Drive",
|
||||
pluralName = "Floppy Drives",
|
||||
type = "floppy_drive"
|
||||
)
|
||||
@Table(name = "floppy_drive_assets")
|
||||
public class FloppyDriveAsset implements Asset
|
||||
{
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private long id;
|
||||
|
||||
/// The generic asset associated with this RAM.
|
||||
@OneToOne(orphanRemoval = true)
|
||||
private GenericAsset asset;
|
||||
|
||||
@Description("Indicates if the floppy drive supports double density (DD) disks.")
|
||||
@Property("doubleDensitySupported")
|
||||
@HideInOverview
|
||||
private Boolean supportsDoubleDensity;
|
||||
|
||||
@Description("Indicates if the floppy drive supports high density (HD) disks.")
|
||||
@Property("highDensitySupported")
|
||||
@HideInOverview
|
||||
private Boolean supportsHighDensity;
|
||||
|
||||
@Description("Indicates if the floppy drive supports extra high density (ED) disks.")
|
||||
@Property("extraHighDensitySupported")
|
||||
@HideInOverview
|
||||
private Boolean supportsExtraHighDensity;
|
||||
|
||||
@Description("The type of interface used by the floppy drive. E.g.: 34-pin, 50-pin, etc.")
|
||||
@Property("Interface Type")
|
||||
@HideInOverview
|
||||
@InputList
|
||||
private String interfaceType;
|
||||
|
||||
@Description("The form factor of the floppy drive. E.g.: 3.5\", 5.25\", etc.")
|
||||
@Property("Form Factor")
|
||||
@InputList
|
||||
private String formFactor;
|
||||
}
|
||||
Reference in New Issue
Block a user