Updated the code to generate the proper field types for these classes. Note that the type of the dateValue field in ContactDate was changed manually to Instant because the underlying column is a DATETIME. I have suggested we change the type of the column to DATE.