I'm setting up a Maven Enterprise Project in NetBeans 7.2 to develop a MIS (management information system). Happens that we have an old database that has to be migrated to the new one. Until the new tool is not ready for production I must update it from the old, wich system will be still in use.
My problem is: I have two persistence units (let's say "oldBase_PU" and "newBase_PU") but I can't create the EJBs, because there are tables with the same name in both databases. When creating the EJBs, the IDE creates only ONE EJB instead of two (one per database, in different packages).
I have tried creating two EJB projects and adding it to the Maven project but had no success. Any tips on how to accomplish this?