Class DateTestEntity

java.lang.Object
org.fastnate.generator.test.date.DateTestEntity

@Entity public class DateTestEntity extends Object
Entity to test writing of times and dates.
Author:
Tobias Liefke
  • Constructor Details

    • DateTestEntity

      protected DateTestEntity()
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public Long getId()
    • getDate

      public Date getDate()
      Legacy dates
    • getTime

      public Date getTime()
    • getTimestamp

      public Date getTimestamp()
    • getDefaultDateNow

      public Date getDefaultDateNow()
    • getDefaultDate2000

      public Date getDefaultDate2000()
    • getLocalDate

      public LocalDate getLocalDate()
      Java8 date objects
    • getLocalTime

      public LocalTime getLocalTime()
    • getLocalDateTime

      public LocalDateTime getLocalDateTime()
    • getDuration

      public Duration getDuration()
    • setId

      public void setId(Long id)
    • setDate

      public void setDate(Date date)
      Legacy dates
    • setTime

      public void setTime(Date time)
    • setTimestamp

      public void setTimestamp(Date timestamp)
    • setDefaultDateNow

      public void setDefaultDateNow(Date defaultDateNow)
    • setDefaultDate2000

      public void setDefaultDate2000(Date defaultDate2000)
    • setLocalDate

      public void setLocalDate(LocalDate localDate)
      Java8 date objects
    • setLocalTime

      public void setLocalTime(LocalTime localTime)
    • setLocalDateTime

      public void setLocalDateTime(LocalDateTime localDateTime)
    • setDuration

      public void setDuration(Duration duration)