[LIB-9] Some domain classes improvements
[chesshog.git] / chesshog-db-etude / src / main / java / org / hedgecode / chess / domain / EtudeType.java
index a9de8aa..e717fe5 100644 (file)
@@ -48,13 +48,13 @@ import javax.persistence.Table;
                 query = "select et from EtudeType et where et.brief = :brief"
         )
 })
-public class EtudeType extends DomainObject {
+public class EtudeType extends DomainObject<EtudeType> {
 
     public static final String FIND_ALL = "EtudeType.findAll";
     public static final String FIND_BY_ID = "EtudeType.findById";
     public static final String FIND_BY_BRIEF = "EtudeType.findByBrief";
 
-    public static final String BRIEF_PROPERTY = "brief";
+    public static final String BRIEF_PARAMETER = "brief";
 
     @Id
     @Column(
@@ -89,4 +89,9 @@ public class EtudeType extends DomainObject {
         return target;
     }
 
+    @Override
+    public Long getId() {
+        return id;
+    }
+
 }