SQL -> Java makes so much more sense than Java -> SQL to me. Most ORMs suck because you have to write your Java while constantly thinking about what the SQL will end up looking like. SqlDelight is way nicer because you write the SQL as it should be, and then use the generated Java confident that it does what you expect