Example usage for org.hibernate.annotations GenerationTime INSERT

List of usage examples for org.hibernate.annotations GenerationTime INSERT

Introduction

In this page you can find the example usage for org.hibernate.annotations GenerationTime INSERT.

Prototype

GenerationTime INSERT

To view the source code for org.hibernate.annotations GenerationTime INSERT.

Click Source Link

Document

Indicates the value is generated on insert.

Usage

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.DatabaseInstancePE.java

License:Apache License

@Column(name = ColumnNames.REGISTRATION_TIMESTAMP_COLUMN, nullable = false, insertable = false, updatable = false)
@Generated(GenerationTime.INSERT)
public final Date getRegistrationDate() {
    return HibernateAbstractRegistrationHolder.getDate(registrationDate);
}

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPE.java

License:Apache License

@Column(name = ColumnNames.REGISTRATION_TIMESTAMP_COLUMN, nullable = false, insertable = false, updatable = false)
@Generated(GenerationTime.INSERT)
public Date getRegistrationDate() {
    return HibernateAbstractRegistrationHolder.getDate(registrationDate);
}

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.HibernateAbstractRegistrationHolder.java

License:Apache License

@Column(name = ColumnNames.REGISTRATION_TIMESTAMP_COLUMN, nullable = false, insertable = false, updatable = false)
@Generated(GenerationTime.INSERT)
public Date getRegistrationDate() {
    return getDate(registrationDate);
}

From source file:org.thingsplode.core.entities.Persistable.java

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Generated(value = GenerationTime.INSERT)
@Column(name = COL_ID, updatable = false, insertable = false)
public ID getId() {
    return id;
}