MoreTypesDemo implements Identifiable<BigDecimal>, Serializable { @Override @Transient @XmlTransient public boolean isIdSet() { return id != null; }  @Override @Column(name = "ID", precision = 15, scale = 5) @GeneratedValue @Id BigDecimal getId(); @Override void setId(BigDecimal id); MoreTypesDemo id(BigDecimal id); @Override @Transient @XmlTransient boolean isIdSet(); @Digits(integer = 10, fraction = 0) @Column(name = "NUMBER_INT", precision = 10) Integer getNumberInt(); void setNumberInt(Integer numberInt); MoreTypesDemo numberInt(Integer numberInt); @Digits(integer = 19, fraction = 0) @Column(name = "NUMBER_LONG", precision = 19) Long getNumberLong(); void setNumberLong(Long numberLong); MoreTypesDemo numberLong(Long numberLong); @Digits(integer = 17, fraction = 0) @Column(name = "NUMBER_DOUBLE", precision = 17) Double getNumberDouble(); void setNumberDouble(Double numberDouble); MoreTypesDemo numberDouble(Double numberDouble); @Digits(integer = 7, fraction = 0) @Column(name = "NUMBER_FLOAT", precision = 7) Float getNumberFloat(); void setNumberFloat(Float numberFloat); MoreTypesDemo numberFloat(Float numberFloat); @Digits(integer = 20, fraction = 0) @Column(name = "NUMBER_BIG_INTEGER", precision = 20) BigInteger getNumberBigInteger(); void setNumberBigInteger(BigInteger numberBigInteger); MoreTypesDemo numberBigInteger(BigInteger numberBigInteger); @Digits(integer = 18, fraction = 2) @Column(name = "NUMBER_BIG_DECIMAL", precision = 20, scale = 2) BigDecimal getNumberBigDecimal(); void setNumberBigDecimal(BigDecimal numberBigDecimal); MoreTypesDemo numberBigDecimal(BigDecimal numberBigDecimal); @Column(name = "DATE_JAVA_TEMPORAL_DATE", length = 8) @Temporal(DATE) Date getDateJavaTemporalDate(); void setDateJavaTemporalDate(Date dateJavaTemporalDate); MoreTypesDemo dateJavaTemporalDate(Date dateJavaTemporalDate); @Column(name = "DATE_JAVA_TEMPORAL_TIMESTAMP", length = 23) @Temporal(TIMESTAMP) Date getDateJavaTemporalTimestamp(); void setDateJavaTemporalTimestamp(Date dateJavaTemporalTimestamp); MoreTypesDemo dateJavaTemporalTimestamp(Date dateJavaTemporalTimestamp); @Column(name = "DATE_JODA", length = 8) @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDate") LocalDate getDateJoda(); void setDateJoda(LocalDate dateJoda); MoreTypesDemo dateJoda(LocalDate dateJoda); @Column(name = "DATE_TIME_JODA", length = 23) @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") LocalDateTime getDateTimeJoda(); void setDateTimeJoda(LocalDateTime dateTimeJoda); MoreTypesDemo dateTimeJoda(LocalDateTime dateTimeJoda); @Column(name = "VERSION", precision = 10) @Version Integer getVersion(); void setVersion(Integer version); MoreTypesDemo version(Integer version); MoreTypesDemo withDefaults(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void newInstanceHasNoPrimaryKey() { MoreTypesDemo model = new MoreTypesDemo(); assertThat(model.isIdSet()).isFalse(); }