Package com.axelor.db

Class JpaModel


  • @MappedSuperclass
    public abstract class JpaModel
    extends Model
    A generic implementation of Model.

    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 Detail

      • JpaModel

        public JpaModel()
    • Method Detail

      • setId

        public void setId​(Long id)
        Specified by:
        setId in class Model