in reply to Re: Re: constructing dynamic class definitions at compile time (from schema definition)
in thread constructing dynamic class definitions at compile time (from schema definition)

Fair enough. However, I would still say that you shouldn't dynamically generate a class from a table.

Let's say that a column does change in your RawTable. The corresponding API of the RawTable class changes. How are the clients of that class supposed to know that the API has changed? What if it's a column that disappears? Your API contract is now invalid. Not good.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re3: constructing dynamic class definitions at compile time (from schema definition)