I've added the requested changes to the test and some additional scenarios.
The changes have been formatted with the formatting rules you supplied and documentation has been added.
I also removed the configurability of the column type, since the code only supported Integer.

4.2: https://github.com/hibernate/hibernate-orm/pull/505
master: https://github.com/hibernate/hibernate-orm/pull/506

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira