I pictured you were referring that the two tables: A & B, had similar structure. So you plan to map them in two HBM files.
Then you would be writing just one core mapping class where you would have to declare the variables mapped in the .hbm files along with setter/getter.
Doesn't that mean you would be writing two similar HBM files with same variable names, as the same would be declared in the core class :!:
So what code would you need :?: