Common Hibernate annotations we use for PostgreSQL
@Column(name = "roomSetup", nullable = false, columnDefinition = "character varying(100) default ''")
public String getRoomSetup() {
@Column(name = "endTime")
@org.hibernate.annotations.Type(type = "org.joda.time.contrib.hibernate.PersistentLocalDateTime")
public LocalDateTime getEndTime() {
@Column(name = "incDueDate", nullable = false, columnDefinition = "integer default 0")
public int getIncrementDueDate() {
@Column(name = "aviUpdateDate")
@org.hibernate.annotations.Type(type = "org.joda.time.contrib.hibernate.PersistentLocalDate")
public LocalDate getAviUpdateDate() {
@Column(name = "reservationId", nullable = false, columnDefinition = "bigint default 0")
public long getReservationId() {
@Column(name = "deleted", nullable = false, columnDefinition = "bool default false")
public boolean isDeleted() {
@Column(name = "time")
@org.hibernate.annotations.Type(type = "org.joda.time.contrib.hibernate.PersistentLocalTimeExact")
public LocalTime getDueTime() {
@Column(name = "price", nullable = false, columnDefinition = "double precision default 0")
public double getPrice() {
@Column(name = "unitPrice", nullable = false, columnDefinition = "real default 0")
float unitPrice;
No comments:
Post a Comment