19 package org.turro.students.entities;
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import org.turro.elephant.db.IdUtils;
27 import org.turro.jpa.entity.IDaoEntity;
28 import org.turro.string.Strings;
29 import org.turro.students.db.StudentsPU;
39 @GeneratedValue(strategy=GenerationType.IDENTITY)
40 @Column(name=
"IDENTIFIER")
70 return Strings.isBlank(name);
76 if(
id ==
null ||
id == 0) {
static long getNewLongIdFromLong(Dao dao, String table, String field)
void setName(String name)
default void prepareSave()