Let change the topic, I understood that I'm a TEXT COMPILER MACHINE that MUST BE ABLE to do something without sending any NEGH NEGH and STUPID texts to forums to be HIRED for whole my life by a representative person of an unknown company who is LOOKING FOR ME :)) and This is the real meaning of respect.
and the word HIRE is the most common and formal word used in the TITLE of not Indian but U.S., Canadian, Australian companies job offers, and not other terms. :D
Well,
Suppose there is a traditional "john smith's standard" framework for persistence layer used directly JDBC and the non-standard POJOs are somehow bound to Database Views (combination of some tables) for "select" operation, and bound to only one of those tables for insert, update and delete operations. and there is no implementation of "instead-of" triggers for these views.
To have the lowest cost of re-factoring and migrating to JPA, the best solution I find up to now is to bind POJOs as JPA entities to the Database Views, and implement the instead-of insert, update and delete triggers for Views.
Is there any other way to get rid of implementation of instead-of triggers, or a better solution. Generally the JPA entity is bound to a view, so some fields are read-only and some are insert-able and update-able. Maybe using some JPA annotations to bind not readonly fields seperately directly to the table.