leonchen wrote:
Hi,
We are going to re-develop our core system.
CompanyA is responsible for this project.
They will re-design out database (Oracle).
In the meantime, we have to develop some small systems.
So, we are developing some codes on a changing database!
For handling such complex issues, they suggested us to use PL/SQL to write business logic, so if the database changes, we can immedateldy know which code will be affected.
But, I really don't want to wirte business logic in PL/SQL(stored procedure)....
Write unit test code, will still miss something ....
ex: the developer may forget to write the testing code ....
Is there any best practice to handle such situation?
Thanks.
I'm not sure I understand the question. What types of changes are being considered?
If the tables or columns might change, but the data structure doesn't, then code the POJOs needed to hold the data and map them to the tables with the XML (don't use annotations here). Let Hibernate handle the mapping and such.
If the changes are going to be more complex (ie- tables being normalized, data types changing from ints to Strings, etc), then please give a bit more details on what it is you are considering and what you seek.