Should I use java.util.Date or java.sql.Date?
I have a VisualFox database and I have retrieved the entities with the IntelliJ Idea wizard using an appropiate jdbc ty
Well, according to this article you can use javax.sql.Date without @Temporal annotation which can save some coding from you. However java.util.Date is easier to use across your whole application.
javax.sql.Date
@Temporal
java.util.Date
So I would use
@Column(name = "date") @Temporal(TemporalType.DATE) private java.util.Date date;