[hibernate-dev] Fix for Using custom types for auto-generated id columns