Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That’s non argument. Just use a better ORM. Hibernate is able to do that for about 20 years.

That said, I’m not a fan of natural keys as primary keys. Especially composite keys. This just takes everybody back to the 80s/early 90s.

It only makes sense when there’s a huge storage benefit



Find me an ORM that can do:

* window functions

* SELECT FOR UPDATE

* row-level security

Prepared statements and query builders are the better ORM.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: