diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/AttributeModel.java b/src/main/java/net/theevilreaper/vulpes/api/model/AttributeEntity.java similarity index 92% rename from src/main/java/net/theevilreaper/vulpes/api/model/AttributeModel.java rename to src/main/java/net/theevilreaper/vulpes/api/model/AttributeEntity.java index bcab36b..bcefa12 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/AttributeModel.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/AttributeEntity.java @@ -6,7 +6,6 @@ import jakarta.persistence.Id; import net.theevilreaper.vulpes.api.generator.VulpesGenerator; -import javax.annotation.processing.Generated; import java.util.UUID; /** @@ -19,7 +18,7 @@ *

*/ @Entity(name = "attributes") -public class AttributeModel implements VulpesModel { +public class AttributeEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -36,12 +35,12 @@ public class AttributeModel implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public AttributeModel() { + public AttributeEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link AttributeModel} with the specified values. + * Constructs a new {@link AttributeEntity} with the specified values. * * @param id the unique identifier of the attribute * @param modelName the model name associated with the attribute @@ -49,7 +48,7 @@ public AttributeModel() { * @param defaultValue the default value of the attribute * @param maximumValue the maximum value of the attribute */ - public AttributeModel(UUID id, String modelName, String name, double defaultValue, double maximumValue) { + public AttributeEntity(UUID id, String modelName, String name, double defaultValue, double maximumValue) { this.id = id; this.modelName = modelName; this.name = name; diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/FontModel.java b/src/main/java/net/theevilreaper/vulpes/api/model/FontEntity.java similarity index 95% rename from src/main/java/net/theevilreaper/vulpes/api/model/FontModel.java rename to src/main/java/net/theevilreaper/vulpes/api/model/FontEntity.java index 7c824a3..4d90a7c 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/FontModel.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/FontEntity.java @@ -20,7 +20,7 @@ *

*/ @Entity(name = "fonts") -public class FontModel implements VulpesModel { +public class FontEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -43,12 +43,12 @@ public class FontModel implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public FontModel() { + public FontEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link FontModel} with the specified values. + * Constructs a new {@link FontEntity} with the specified values. * * @param id the unique identifier of the font * @param modelName the model name associated with the font @@ -60,7 +60,7 @@ public FontModel() { * @param chars the list of characters included in the font * @param shift the list of shift values for the font */ - public FontModel(UUID id, String modelName, String name, String description, String type, int ascent, int height, List chars, List shift) { + public FontEntity(UUID id, String modelName, String name, String description, String type, int ascent, int height, List chars, List shift) { this.id = id; this.modelName = modelName; this.name = name; diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/ItemModel.java b/src/main/java/net/theevilreaper/vulpes/api/model/ItemEntity.java similarity index 95% rename from src/main/java/net/theevilreaper/vulpes/api/model/ItemModel.java rename to src/main/java/net/theevilreaper/vulpes/api/model/ItemEntity.java index 5887904..afaeb70 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/ItemModel.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/ItemEntity.java @@ -21,7 +21,7 @@ *

*/ @Entity(name = "items") -public class ItemModel implements VulpesModel { +public class ItemEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -49,12 +49,12 @@ public class ItemModel implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public ItemModel() { + public ItemEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link ItemModel} with the specified values. + * Constructs a new {@link ItemEntity} with the specified values. * * @param id the unique identifier of the item * @param modelName the model name associated with the item @@ -69,7 +69,7 @@ public ItemModel() { * @param lore the lore associated with the item * @param flags the flags associated with the item */ - public ItemModel(UUID id, String modelName, String name, String description, String displayName, String material, String groupName, int customModelData, int amount, Map enchantments, List lore, List flags) { + public ItemEntity(UUID id, String modelName, String name, String description, String displayName, String material, String groupName, int customModelData, int amount, Map enchantments, List lore, List flags) { this.id = id; this.modelName = modelName; this.name = name; diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/NotificationModel.java b/src/main/java/net/theevilreaper/vulpes/api/model/NotificationEntity.java similarity index 94% rename from src/main/java/net/theevilreaper/vulpes/api/model/NotificationModel.java rename to src/main/java/net/theevilreaper/vulpes/api/model/NotificationEntity.java index d652605..95e538d 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/NotificationModel.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/NotificationEntity.java @@ -18,7 +18,7 @@ *

*/ @Entity(name = "notifications") -public class NotificationModel implements VulpesModel { +public class NotificationEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -37,12 +37,12 @@ public class NotificationModel implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public NotificationModel() { + public NotificationEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link NotificationModel} with the specified values. + * Constructs a new {@link NotificationEntity} with the specified values. * * @param id the unique identifier of the notification * @param modelName the model name associated with the notification @@ -52,7 +52,7 @@ public NotificationModel() { * @param frameType the frame type associated with the notification * @param title the title of the notification */ - public NotificationModel(UUID id, String modelName, String name, String description, String material, String frameType, String title) { + public NotificationEntity(UUID id, String modelName, String name, String description, String material, String frameType, String title) { this.id = id; this.modelName = modelName; this.name = name; diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundData.java b/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundDataEntity.java similarity index 90% rename from src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundData.java rename to src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundDataEntity.java index 0b5fe6b..8b0bc6a 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundData.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundDataEntity.java @@ -4,11 +4,8 @@ import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Id; -import net.theevilreaper.vulpes.api.generator.UuidV7Generator; import net.theevilreaper.vulpes.api.generator.VulpesGenerator; import net.theevilreaper.vulpes.api.model.VulpesModel; -import org.hibernate.annotations.GenericGenerator; -import org.hibernate.annotations.IdGeneratorType; import java.util.UUID; @@ -22,7 +19,7 @@ *

*/ @Entity(name = "sound_data") -public class SoundData implements VulpesModel { +public class SoundDataEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -39,12 +36,12 @@ public class SoundData implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public SoundData() { + public SoundDataEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link SoundData} with the specified values. + * Constructs a new {@link SoundDataEntity} with the specified values. * * @param id the unique identifier of the sound data * @param name the name of the sound data @@ -52,7 +49,7 @@ public SoundData() { * @param volume the volume level of the sound * @param pitch the pitch of the sound */ - public SoundData(UUID id, String name, String source, double volume, double pitch) { + public SoundDataEntity(UUID id, String name, String source, double volume, double pitch) { this.id = id; this.name = name; this.source = source; diff --git a/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundModel.java b/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundEntity.java similarity index 81% rename from src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundModel.java rename to src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundEntity.java index 864762a..42b9ed0 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundModel.java +++ b/src/main/java/net/theevilreaper/vulpes/api/model/sound/SoundEntity.java @@ -21,7 +21,7 @@ *

*/ @Entity(name = "sounds") -public class SoundModel implements VulpesModel { +public class SoundEntity implements VulpesModel { @Id @GeneratedValue(strategy = GenerationType.UUID) @@ -35,7 +35,7 @@ public class SoundModel implements VulpesModel { * This is a one-to-many relationship where each sound model can have multiple sound data entities. */ @OneToMany(mappedBy = "id") - private List soundData; + private List soundDatumEntities; /** * Default constructor for JPA and Micronaut Data. @@ -43,23 +43,23 @@ public class SoundModel implements VulpesModel { * This constructor is required for the JPA provider to instantiate the entity. *

*/ - public SoundModel() { + public SoundEntity() { // No-argument constructor for JPA } /** - * Constructs a new {@link SoundModel} with the specified values. + * Constructs a new {@link SoundEntity} with the specified values. * * @param id the unique identifier of the sound model * @param modelName the name of the sound model * @param source the source file or location of the sound model - * @param soundData the list of sound data related to this sound model + * @param soundDatumEntities the list of sound data related to this sound model */ - public SoundModel(UUID id, String modelName, String source, List soundData) { + public SoundEntity(UUID id, String modelName, String source, List soundDatumEntities) { this.id = id; this.modelName = modelName; this.source = source; - this.soundData = soundData; + this.soundDatumEntities = soundDatumEntities; } // Getters and setters for each field @@ -123,17 +123,17 @@ public void setSource(String source) { * * @return the list of sound data */ - public List getSoundData() { - return soundData; + public List getSoundData() { + return soundDatumEntities; } /** * Sets the list of sound data related to this sound model * - * @param soundData the list of sound data to set + * @param soundDatumEntities the list of sound data to set */ - public void setSoundData(List soundData) { - this.soundData = soundData; + public void setSoundData(List soundDatumEntities) { + this.soundDatumEntities = soundDatumEntities; } /** @@ -147,7 +147,7 @@ public String toString() { "id='" + id + '\'' + ", modelName='" + modelName + '\'' + ", source='" + source + '\'' + - ", soundData=" + soundData + + ", soundData=" + soundDatumEntities + '}'; } } diff --git a/src/main/java/net/theevilreaper/vulpes/api/repository/AttributeRepository.java b/src/main/java/net/theevilreaper/vulpes/api/repository/AttributeRepository.java index 6c39c13..03cd6da 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/repository/AttributeRepository.java +++ b/src/main/java/net/theevilreaper/vulpes/api/repository/AttributeRepository.java @@ -2,10 +2,10 @@ import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.PageableRepository; -import net.theevilreaper.vulpes.api.model.AttributeModel; +import net.theevilreaper.vulpes.api.model.AttributeEntity; import java.util.UUID; @Repository -public interface AttributeRepository extends PageableRepository { +public interface AttributeRepository extends PageableRepository { } diff --git a/src/main/java/net/theevilreaper/vulpes/api/repository/FontRepository.java b/src/main/java/net/theevilreaper/vulpes/api/repository/FontRepository.java index 0f9b91f..916a0bb 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/repository/FontRepository.java +++ b/src/main/java/net/theevilreaper/vulpes/api/repository/FontRepository.java @@ -2,10 +2,10 @@ import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.PageableRepository; -import net.theevilreaper.vulpes.api.model.FontModel; +import net.theevilreaper.vulpes.api.model.FontEntity; import java.util.UUID; @Repository -public interface FontRepository extends PageableRepository { +public interface FontRepository extends PageableRepository { } diff --git a/src/main/java/net/theevilreaper/vulpes/api/repository/ItemRepository.java b/src/main/java/net/theevilreaper/vulpes/api/repository/ItemRepository.java index 0913df2..fb8b2fa 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/repository/ItemRepository.java +++ b/src/main/java/net/theevilreaper/vulpes/api/repository/ItemRepository.java @@ -2,10 +2,10 @@ import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.PageableRepository; -import net.theevilreaper.vulpes.api.model.ItemModel; +import net.theevilreaper.vulpes.api.model.ItemEntity; import java.util.UUID; @Repository -public interface ItemRepository extends PageableRepository { +public interface ItemRepository extends PageableRepository { } diff --git a/src/main/java/net/theevilreaper/vulpes/api/repository/NotificationRepository.java b/src/main/java/net/theevilreaper/vulpes/api/repository/NotificationRepository.java index 8060cd6..6cd2ec5 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/repository/NotificationRepository.java +++ b/src/main/java/net/theevilreaper/vulpes/api/repository/NotificationRepository.java @@ -2,10 +2,10 @@ import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.PageableRepository; -import net.theevilreaper.vulpes.api.model.NotificationModel; +import net.theevilreaper.vulpes.api.model.NotificationEntity; import java.util.UUID; @Repository -public interface NotificationRepository extends PageableRepository { +public interface NotificationRepository extends PageableRepository { } diff --git a/src/main/java/net/theevilreaper/vulpes/api/repository/SoundRepository.java b/src/main/java/net/theevilreaper/vulpes/api/repository/SoundRepository.java index 49eb599..bb7bced 100644 --- a/src/main/java/net/theevilreaper/vulpes/api/repository/SoundRepository.java +++ b/src/main/java/net/theevilreaper/vulpes/api/repository/SoundRepository.java @@ -2,10 +2,10 @@ import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.PageableRepository; -import net.theevilreaper.vulpes.api.model.sound.SoundModel; +import net.theevilreaper.vulpes.api.model.sound.SoundEntity; import java.util.UUID; @Repository -public interface SoundRepository extends PageableRepository { +public interface SoundRepository extends PageableRepository { }