Commit a3069daf authored by tbilos's avatar tbilos
Browse files

fix: make Skill abstract, remove redundant ID

parent 109866ad
Pipeline #122667 waiting for manual action with stage
......@@ -5,20 +5,12 @@ import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @author Juraj Fiala
*/
@Entity
public class LanguageSkill extends Skill {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Getter
@Setter
private Long id;
@Getter
@Setter
......
......@@ -26,7 +26,6 @@ public class PerformanceEvaluation {
@Setter
private String evaluation;
//on a scale of 0 upto 100
@Getter
@Setter
private int rating;
......
......@@ -9,7 +9,7 @@ import javax.persistence.*;
* @author Juraj Fiala
*/
@Entity
public class Skill {
public abstract class Skill {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Getter
......
package cz.fi.muni.pa165.seminar4.group7.secretservice.entity;
import cz.fi.muni.pa165.seminar4.group7.secretservice.enums.LanguageCode;
import cz.fi.muni.pa165.seminar4.group7.secretservice.enums.WeaponCategory;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @author Juraj Fiala
*/
@Entity
public class WeaponSkill extends Skill {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Getter
@Setter
private Long id;
@Getter
@Setter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment