setup ffsaf server
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user