I have 2 tables 'A'table, 'B'table, having both same columns.
My question is.. can i use one java file "setter/getter" for both tables like writing 2 hbm files for one java file? is it possible , or ?
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 :?: