org.hibernate.annotations.UpdateTimestamp Java Examples
The following examples show how to use
org.hibernate.annotations.UpdateTimestamp.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseDomainHelper.java From uyuni with GNU General Public License v2.0 | 4 votes |
/** * Gets the current value of modified * @return Date the current value */ @Column(name = "modified") @UpdateTimestamp public Date getModified() { return this.modified; }
Example #2
Source File: UpdateTimestampGeneration.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void initialize(UpdateTimestamp annotation, Class<?> propertyType) { generator = TimestampGenerators.get(propertyType); }