Changed order of attribute

Attribute is now on the DTO not on the entity. I think this makes more
sense.