Added custom id generator custom mapping type support.
Merge pull request #448 from jgornick/issue/447

Update custom ID generator to allow a custom mapping type