3 ms·
Why Avoid an ORM
- johnthuss 5y agoFor Java, Apache Cayenne [1] is an ORM library inspired by Apple's Enterprise Objects Framework (which was part of WebObjects, and preceded Core Data). It avoids a lot of the junk you have with Hibernate and JPA. If you are sympathetic to using an ORM, check out Cayenne. Cayenne doesn't suffer from the second and third issues mentioned here - "Object identity" and "Managing object relationships". The "n+1 queries" issue does apply to Cayenne, but it has workarounds, even when the object graph traversal is done in separate unrelated functions. 1. https://cayenne.apache.org https://cayenne.apache.org