Hacker News new | past | comments | ask | show | jobs | submit login

Even if you use an ORM you should probably know SQL so you can use them efficiently. Also, if you use an ORM, make sure it "starts with database schema" not with objects. Otherwise the mismatch will probably be horrible for you. A dozen years ago I published this article on generating your domain objects from the database, still a reasonable thing to do if you want the added query expressiveness the ORMs have over most SQL generators.

https://javarants.com/generate-jpa-or-gorm-classes-from-your...




A feature of Netbeans I always liked was the ability to create a Hibernate Java Object directly from a database table. It does make sense to me to start at the DB first because the application is just a broker between the front end and the DB so it's more flexible to make the adaptations there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: