Re:Databases always have a schema (2018)
by _bxg1 on Monday February 25, 2019 @10:58AM
(#19246511)
We used hibernate, which does the opposite (Java classes/annotations -> SQL). You'd still have the same disadvantages: having an imperfect "clone" of your schema.
[ Parent
| on HN ]
Can you elaborate what you mean by "imperfect"?
A Java string isn't precisely the same thing as a varchar(255), for example. Nor is an ArrayList (ordered) the same thing as a set of rows (unordered). Mapping between these slightly different sets of concepts usually works well enough, but it's an additional piece of disjointedness.