Do we have to hard-code the column names and indexes in our program?
I have a database table which contains 70 columns. And my insert statement is looking like a beast. I am hard-coding the column indexes and column names in my program, although I have it in one place in the form of an enum. Is this how all the JDBC programs work? I am smelling something wrong with this approach.
I don't know anything about Hibernate, but is it the solution for this problem?