Better HN
topnewbestaskshowjobs
Log inSign up

pieterb8

2 karma · joined Nov 22, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

True indeed, certainly not an ORM. But I would say the effect you can achieve with it is very close to what a proper ORM can do, much more so than the lower level frameworks java people are now recommending.

comment 6y ago · link · parent

Many Java developers say ORMs are the problem. Not so. JPA is. It is complicated, has lots of implicit behaviour, has a really bad query language and is horrible to optimize. It is why you never hear 'ORMs are horrible' from ruby on rails or elixir developers: they have a proper ORM! Actually Java has too, and probably several - Ebean, for example, solves all of the complexity problems, adds a query creation tool that stays very close to SQL and allows very simple object fetching, allows for simple batch operations, and requires a proper explicit save instead of the complicated implicit JPA one.