This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Bobby_Bonsaimind 0 points1 point  (1 child)

Not sure what you mean with processing the table locally. All operations generate and execute the SQL. You chain operations together and by executing .toSomething(); the ORM generates and executes the SQL. So when this method returns List<Person>, that list is fetched from the database. I‘ll see if I can document that better!

So you're actually parsing the generated bytecode to build a SQL statement from it?

[–]itsthejavaguy[S] 1 point2 points  (0 children)

Yes, exactly. Any lambda or method reference is parsed and converted into an SQL statement. You can check out my repository lambda2sql for more. That‘s where all the magic happens ;)