Package io.ebean

Class Version<T>


  • public class Version<T>
    extends Object
    Wraps a version of a @History bean.
    • Constructor Detail

      • Version

        public Version()
        Default constructor - useful for JSON tools such as Jackson.
    • Method Detail

      • getBean

        public T getBean()
        Return the bean instance for this version.
      • setBean

        public void setBean​(T bean)
        Set the bean instance for this version.
      • getStart

        public Timestamp getStart()
        Return the effective start date time of this version.
      • setStart

        public void setStart​(Timestamp start)
        Set the effective start date time of this version.
      • getEnd

        public Timestamp getEnd()
        Return the effective end date time of this version.
      • setEnd

        public void setEnd​(Timestamp end)
        Set the effective end date time of this version.
      • setDiff

        public void setDiff​(Map<String,​ValuePair> diff)
        Set the map of differences from this bean to the prior version.