org.hibernate.annotations.CreationTimestamp Java Examples
The following examples show how to use
org.hibernate.annotations.CreationTimestamp.
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: PackageExtraTagsKeys.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return created to get */ @CreationTimestamp @Temporal(TemporalType.TIMESTAMP) @Column(name = "created") public Date getCreated() { return created; }
Example #2
Source File: NotificationMessage.java From uyuni with GNU General Public License v2.0 | 5 votes |
/** * @return Returns the created date. */ @CreationTimestamp @Temporal(TemporalType.TIMESTAMP) @Column(name = "created") public Date getCreated() { return created; }
Example #3
Source File: ContentProjectHistoryEntry.java From uyuni with GNU General Public License v2.0 | 4 votes |
/** * Gets the created. * * @return created */ @Column(nullable = false, updatable = false) @CreationTimestamp public Date getCreated() { return created; }
Example #4
Source File: BaseDomainHelper.java From uyuni with GNU General Public License v2.0 | 4 votes |
/** * Gets the current value of created * @return Date the current value */ @Column(name = "created", nullable = false, updatable = false) @CreationTimestamp public Date getCreated() { return this.created; }
Example #5
Source File: CreationTimestampGeneration.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void initialize(CreationTimestamp annotation, Class<?> propertyType) { generator = TimestampGenerators.get(propertyType); }