I was trying to configure generators to have one document for all id. So I tried following configurations
@TableGenerator( name = "gen", table = "sequences", pkColumnValue = "all", valueColumnName = "firstClass" ) @TableGenerator( name = "gen", table = "sequences", pkColumnValue = "all", valueColumnName = "secondClass" )
But this didn't work for CouchDB ( for Mogno did), please check my pr for my understadning of this problem.