4 ms·
"Bad practice - if you hide the database, you may get something done quickly, but it's a bad idea. If your Java code expects to have a collection of one million
by kimi 6y ago
"Bad practice - if you hide the database, you may get something done quickly, but it's a bad idea. If your Java code expects to have a collection of one million objects as an array, it does not matter if they are lazily loaded or not - some code somewhere might want to iterate over them, and this will kill the process. You cannot really forget that there is a database somewhere, and you should not do it."
https://github.com/l3nz/ObjectiveSync https://github.com/l3nz/ObjectiveSync
- doctor_eval 6y agoGreat synopsis of JPA problems generally!