Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load FK references #6

Open
jdavo opened this issue Jun 13, 2012 · 2 comments
Open

Lazy load FK references #6

jdavo opened this issue Jun 13, 2012 · 2 comments
Assignees

Comments

@jdavo
Copy link
Collaborator

jdavo commented Jun 13, 2012

It would be nice if we were able have FK references lazy loaded (ie not loaded from the DB) until they are referenced, and achieve this via support in the ORM library

@ghost ghost assigned jdavo Jun 13, 2012
@bytor99999
Copy link
Owner

Do you mean associations? Like I have an Order that has a
List and the list of OrderDetails is lazy loaded? If you mean
that, that is a slippery slope. Having build an ORM product years and years
ago, those types of features are the ones that you have to keep adding to
and keep maintaining and it becomes a pain.

That is especially the parts of an ORM that I wanted to avoid. It really is
a library for JdbcTemplate of Spring's JdbcTemplate, with very very little
straight mapping one to one to objects and tables and that was it.

If you want that, you can always add it, but I wouldn't have time to
maintain that part of the code. But you can always do that if you want.

Mark

On Tue, Jun 12, 2012 at 7:07 PM, David O'Meara <
[email protected]

wrote:

It would be nice if we were able have FK references lazy loaded (ie not
loaded from the DB) until they are referenced, and achieve this via support
in the ORM library


Reply to this email directly or view it on GitHub:
#6

@jdavo
Copy link
Collaborator Author

jdavo commented Jun 13, 2012

I'll yield to your experience if you suggest this is a slippery slope. In my mind it is more of a 'desirable' than a necessity for an ORM layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants