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

55 lines
1.4 KiB
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;
@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
@JsonIgnore
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;
}