19 package org.turro.alliance.db.entities;
21 import java.io.Serializable;
23 import javax.json.JsonValue;
24 import javax.persistence.Entity;
25 import javax.persistence.Id;
26 import org.turro.alliance.db.AlliancePU;
27 import org.turro.elephant.db.IdUtils;
28 import org.turro.jpa.entity.IDaoEntity;
29 import org.turro.json.IJSONizable;
30 import org.turro.math.Zero;
31 import org.turro.string.Strings;
40 @Id
private Long categoryId;
49 this.categoryId = categoryId;
69 return Strings.isBlank(name);
88 public String
toJson(Map<String, Object> properties) {
89 return toJson(
this, properties);
static AxTalentCategory fromJson(JsonValue value)
void setCategoryId(Long categoryId)
void setName(String name)
String toJson(Map< String, Object > properties)
static long getNewLongIdFromLong(Dao dao, String table, String field)
static boolean orNull(Number value)
default void prepareSave()