Created
March 4, 2017 08:21
-
-
Save phuongtailtranminh/22bb5325056dd6c3d10eb04ce539a273 to your computer and use it in GitHub Desktop.
Hibernate JodaDatetime and Jadira Type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Basic | |
@Column(name = "created_date", nullable = true) | |
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") | |
public DateTime getCreatedDate() { | |
return createdDate; | |
} | |
public void setCreatedDate(DateTime createdDate) { | |
this.createdDate = createdDate; | |
} | |
@Basic | |
@Column(name = "updated_date", nullable = true) | |
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime") | |
public DateTime getUpdatedDate() { | |
return updatedDate; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment