Use Generics for Entity attributes