I am working on a large scale project which contains many modules. I have several schemas on RDBMS database. We could not use just one schema cause each module contains a lots of tables. Each module is as a separate EAR project ( create using Seam Dynamic Web Project) which contains one ejb project and one web project.
We create entities using JPA. Now when we need to access one table (entity) of one schema from another table of another schema then we have to create the entity again.
My question is can we use these entities as web services or how we can reuse these entities without recreate these.