Add @ResourceId

By default an object's id field is treated as the resource id. The @ResourceId annotation makes possible to use another field as the object's resource id.