Package com.axelor.db
Class JpaModel
- java.lang.Object
-
- com.axelor.db.Model
-
- com.axelor.db.JpaModel
-
@MappedSuperclass public abstract class JpaModel extends Model
A generic implementation ofModel
.This class uses
GenerationType.AUTO
strategy for id generation which is best suited for models where sequence of record ids is important.This is the most optimal strategy so this class should be used whenever possible.
-
-
Constructor Summary
Constructors Constructor Description JpaModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getId()
void
setId(Long id)
-
Methods inherited from class com.axelor.db.Model
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
-
-