I'm using Spring Boot with Spring Data JPA to map an Entity to a table in a SQL Server database for which I've created an @Embeddable composite key. There's a column I'd like to use as part of the key and according to SQuirreL its type name is datetime and the class name is java.sql.Timestamp. The key class looks like this:
@Embeddable
public class MyEntityIdentifier implements Serializable {
@Column(name = "LastUpdateDateTime")
private Timestamp lastUpdateDateTime;
...but the lastUpdateDateTime property always resolves to null without error. I've checked and there are no null fields for this column. I've also tried resolving to java.util.Date without success. Is there another type I should be using or something I'm doing wrong?
@Tableannotation - column is definitely there :/