6 ms·
I remember tackling a similar database introspection problem in 2006 I think it was. Reflection played a pretty big part in the solution if I recall. I don't
by Stormbringer 16y ago
I remember tackling a similar database introspection problem in 2006 I think it was. Reflection played a pretty big part in the solution if I recall.
I don't remember what exactly it was that I wanted to do, but it might have been something like building a dynamic table editor. You pull back the resultset, and then whip up a grid and for each column you assign the column heading based on the value from the resultset, and then when you go to update one of the rows you need to remember the name of the column for building the query dynamically. You have to jump through a few hoops, but it isn't hard.
Anyway, once I discovered the superior technology of JPA I never looked back.