MCQs>IT & Programming>Java>Say we have java entity with date field. For example: @Entity class User{ private Date joinDate; public Date getJoinDate(){ return joinDate; } public void setJoinDate(Date joinDate){ this.joinDate = joinDate; } } What JPA annotation will help us specify date format that will be used in database?
Java MCQs
Say we have java entity with date field. For example: @Entity class User{ private Date
joinDate; public Date getJoinDate(){ return joinDate; } public void setJoinDate(Date
joinDate){ this.joinDate = joinDate; } } What JPA annotation will help us specify date
format that will be used in database?
Answer
Correct Answer: @Temporal
Explanation:
Note: This Question is unanswered, help us to find answer for this one