All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.annotations.UpdateTimestamp Maven / Gradle / Ivy

The newest version!
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.annotations;

import org.hibernate.tuple.UpdateTimestampGeneration;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Marks a property as the update timestamp of the containing entity. The property value will be set to the current VM
 * date whenever the owning entity is updated.
 * 

* Supported property types: *

    *
  • {@link java.util.Date}
  • *
  • {@link java.util.Calendar}
  • *
  • {@link java.sql.Date}
  • *
  • {@link java.sql.Time}
  • *
  • {@link java.sql.Timestamp}
  • *
  • {@link java.time.Instant}
  • *
  • {@link java.time.LocalDate}
  • *
  • {@link java.time.LocalDateTime}
  • *
  • {@link java.time.LocalTime}
  • *
  • {@link java.time.MonthDay}
  • *
  • {@link java.time.OffsetDateTime}
  • *
  • {@link java.time.OffsetTime}
  • *
  • {@link java.time.Year}
  • *
  • {@link java.time.YearMonth}
  • *
  • {@link java.time.ZonedDateTime}
  • *
* * @author Gunnar Morling */ @ValueGenerationType(generatedBy = UpdateTimestampGeneration.class) @Retention(RetentionPolicy.RUNTIME) public @interface UpdateTimestamp { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy