Fix some persistence errors

Added @Temporal annotation on Date attributes.