i have a scenario where Iam mapping class Payload.java with physical naming strategy to tables Payload_1, Payload_2 up to Payload_100. all tables are in same database(psql DB). For now i am creating session factory for each table as i don't have different annotation class for each table. is there a way to create single session factory for all the tables when used physical naming strategy.
I tried with @ScondaryTables mentioning all tables in annotation which i understood it is altogether different purpose. I am using Configuration object instead of XML while creating session factory and using hibernate 5.
can someone help me out creating single session factory when used physical naming strategy and extracting data from multiple tables mapped to session factory configuration