sping jdbctemplate for deleting?
Posted on 2014-03-31
I am using the Spring jdbctemplate for my DAO.
I have to delete records from table and this paritcular table has reference integrity on other two tables.
So I have to delete records from other tables before I can delete.
Can I do this in one scoop or do I need three different jdbctemplateS?
Delete from Catalog_Price Where cat=?
Delete from Catalog_factory where cat=?
Delete from Catalog where cat=?
Also I have to pass the parameter.