18 package org.turro.financials.entity;
20 import javax.persistence.*;
21 import org.amic.util.date.CheckDate;
22 import org.turro.elephant.db.IdUtils;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.jpa.entity.IDaoEntity;
34 @GeneratedValue(strategy=GenerationType.IDENTITY)
35 @Column(name=
"IDENTIFIER")
44 private long bookOrder;
47 return bookDefinition;
51 this.bookDefinition = bookDefinition;
59 this.bookOrder = bookOrder;
75 this.
register =
register;
85 return bookDefinition ==
null ||
register ==
null;
95 "year(register.registerDate) = " +
new CheckDate(
register.getRegisterDate()).getYear(),
96 "bookDefinition.id = " + bookDefinition.getId(),
97 "register.view.id = " +
register.getView().getId()
static long getMaxLongIdFromLong(Dao dao, String table, String field)
void setBookOrder(long bookOrder)
void setRegister(Register register)
BookDefinition getBookDefinition()
void setBookDefinition(BookDefinition bookDefinition)
default void prepareSave()