Hibernate or iBatis or something else?

后端 未结 3 1872
耶瑟儿~
耶瑟儿~ 2021-01-14 10:57

In my project i need to switch between databases during runtime. I tried to use Hibernate, but stuck in a place, where i need to map object with table in database. The probl

3条回答
  •  悲&欢浪女
    2021-01-14 11:39

    Do the tables have the same structure, just different names?

    This is definitely possible to map in iBATIS.

    You would just need to include something like this in your SQL Map:

    
    

    Assuming that I have understood your question correctly, that should solve your problem.

提交回复
热议问题