Hello,
I'm trying to evaluate whether we can use Hibernate for our project. I've been reading for several hours now and I'm stuck at some point. It looks like we cant use it but I'd like to be sure.
In the project there will be business logic classes, lets say, ShowEntity and it will be functionally the same for every type of entity. The only thing that is changed is the data content (wrong, it should be: the tables and as a result the columns). We dont want to put things like table names, table columns (database specific code) in the java code.
That means we need to be able to use a different table mapping for one class with respect to different values of an argument.
Is it possible to map a class to different tables and can we choose with respect to the argument that comes from the class?
I found that it's possible "Mapping a class more than once". (
http://www.hibernate.org/hib_docs/v3/re ... pping.html)
But I couldnt find anything more than that. And I couldnt exactly understand whether its what I want.
Thank you for any comment and suggestion.
Cheers,
Elif