List of usage examples for org.hibernate.annotations GenerationTime ALWAYS
GenerationTime ALWAYS
To view the source code for org.hibernate.annotations GenerationTime ALWAYS.
Click Source Link
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.DataPE.java
License:Apache License
@Column(name = ColumnNames.REGISTRATION_TIMESTAMP_COLUMN, nullable = false, insertable = false) @Generated(GenerationTime.ALWAYS) public Date getRegistrationDate() { return HibernateAbstractRegistrationHolder.getDate(registrationDate); }
From source file:kr.debop4j.data.model.mysql.IMySqlUpdatedTimestamp.java
License:Apache License
/** MySQL ? ?? . */ @Column(updatable = false, insertable = false, columnDefinition = "timestamp default current_timestamp on update current_timestamp") @Generated(GenerationTime.ALWAYS) Timestamp getUpdatedTimestamp();/*from ww w . ja v a 2s . com*/
From source file:nl.lawinegevaar.jaytalk2014.hibernate.employee.EmployeeEntity.java
License:Creative Commons License
@Basic @Column(name = "FULL_NAME", updatable = false, insertable = false) @Generated(GenerationTime.ALWAYS) public String getFullName() { return fullName; }
From source file:nl.lawinegevaar.jaytalk2014.hibernate.employee.SalaryHistoryEntity.java
License:Creative Commons License
@Basic @Column(name = "NEW_SALARY", insertable = false, updatable = false) @Generated(GenerationTime.ALWAYS) public Double getNewSalary() { return newSalary; }
From source file:nl.lawinegevaar.jaytalk2014.hibernate.employee.SalesEntity.java
License:Creative Commons License
@Basic @Column(name = "AGED", insertable = false, updatable = false) @Generated(GenerationTime.ALWAYS) public BigDecimal getAged() { return aged; }