setup ffsaf server

This commit is contained in:
2024-01-11 22:48:19 +01:00
commit 1d2d4626a5
34 changed files with 2323 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package fr.titionfire.ffsaf.domain.entity;
import fr.titionfire.ffsaf.data.model.ClubModel;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
@RegisterForReflection
public class ClubEntity {
private long id;
private String name;
private String country;
private String shieldURL;
public static ClubEntity fromModel (ClubModel model) {
return new ClubEntity(model.getId(), model.getName(), model.getCountry(), model.getShieldURL());
}
public ClubModel toModel () {
return new ClubModel(this.id, this.name, this.country, this.shieldURL);
}
}