Is it possible to map one CMP to more then one Table/Schemes?
Example: TestCMP => table "test" but also TestCMP => table "test_log"
Okay maybe its impossible to distinquish between the 2 purposes so maybe it can be solved by extending the TestCMP.
So TestLogCMP extends TestCMP mapped to some other table / scheme.
Whats neccesary to reach this goal? Is it possible to do this with ejb3 annotations?
TestCMP might be the only productie Entity. The archive operation might be inside a databse trigger, so the db would copy the row to test_log. I just need the possiblility to work with the log entries casually, but it would be fine to avoid redundant code between both CMPs.