Removing setters, adding @ORM prefix and casting primitive types.