Spring Create SP class with or without Eclipse

With Hibernate + Eclipse, you can create POJO classes that represent tables. You can easily wire it all together with Spring. However, if you need to interact with stored procedures, you must wrap each of them in their own class (s), although this is definitely preferable to standard JDBC, it can be a little cumbersome at times.

Does anyone know if there is a script, application, Eclipse plugin, or anything that generates Spring stored procedure classes?

Thanks in advance.

0


source to share


1 answer


You can subclass Spring StoredProcedure to call stored procs, but there is another way if you are using Spring 2.5. The SimpleJdbcCall class makes this easier.

I don't know about Eclipse plugins or anything else to do this for you. If you have a lot of them, then it seems to me that this is the perfect place for the Velocity pattern, a flat file with names and I / O parameters for each one, and a quick Java application to marry with them.



[pompous] Gez, you have a framework. Too much to ask that we are writing small code? If these are all wizards and plugins, what is a developer for? [/ Bombastic]

+2


source







All Articles