Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lazy-loading library?

Is there a library that deals exclusively with lazy-loading class fields without all the bells and whistles of full-fledged ORM? Alternatively, which ORM (with a liberal license) provides the best lazy-loading mechanism that I can reuse?

like image 211
Gili Avatar asked Nov 14 '22 04:11

Gili


1 Answers

MyBatis sounds like it might be just what your after. It's not an ORM, but a "data mapper" to map SQL statements (or stored procedures) to objects. There are both Java and .Net versions.

In my experience, it works very well, and is far simpler to use than a full blown ORM (I'm looking at you Hibernate). The community remains active, and has spawned a number of integration projects for libraries like Spring and Guice, as well as MyBatis Migrations for managing databases (similar to RoR Migrations).

like image 86
Chadwick Avatar answered Nov 16 '22 18:11

Chadwick