Called stored procedure inserts data to wrong columns
posted 8 years ago
Let me be concise. Here's some code:
The procedure inserts vars into wrong columns (Because in case of stored procedures calling annotation @column doesn't work). After debugging it a bit I sorted out that hibernate makes a table(named fields) and fills it with fields form passed object. Fields form object are sorted in alphabetical order, and arguments in procedure are not. When procedure is called the arguments are passed in order from fields table... and that's how I am stucked. Anybody knows how to define the order of passed aprameters? Or maybe there's a way to pass named parameters instead of "?"?