Here is my scenario. In a production/qa environment I do not want my application to be able to insert into a table (only select/update).
For this reason, our POJOs are not annotated with an id generator. On the flip side, I would like to make use of the id generator during unit test execution. Is there a way to programatically add the id generator for an entity once the session factory has been created? I am using Oracle and would like to use a sequence to create test data.
Any other ideas on how to achieve the same result?
Thanks,
jp4
|