When we built the first version of our own structure ( Inon Datamanager ), I read its earlier SQL tables and auto- generate Java objects from them.
When my colleagues who came from the Smalltalkish background built the second version, they started with objects and then autogenerated the tables.
Actually, they completely forgot about the SQL part, until I came back and added it. But we are currently launching a trigger when starting an application that iterates over the object model, checks to see if tables and all the correct columns exist, and creates them if not. Very comfortably.
This turned out to be much simpler than you might expect - if your favorite tool does not support such a process, you could probably write it in a couple of hours - assuming that the relation to object matching is relatively simple.
But the fact is that it depends on whether you are a cultural person or a database person - you can consider any of them as an authoritative source.
source share