Added @DatabaseConstrained support on fields that are not an entity. This is usefull for validating commands.