Lambda.group() calls toString() ?

19 views
Skip to first unread message

Dmitriy Vsekhvalnov

unread,
Sep 18, 2011, 11:44:41 AM9/18/11
to lam...@googlegroups.com
Question from hibernate world,

  it looks that Lambda.group()  eventually calls toString() on objects . Which in turn causes hibernate to load lazy-collections (in case they are formatted in toString()).  

  Is there is a way to overcome it?  Don't want to load bunch of unrelated data and don't want to lose debug capability of toString().


LambdaJ version is 2.3. Thanks.

Dmitriy Vsekhvalnov

unread,
Sep 20, 2011, 7:29:29 AM9/20/11
to lam...@googlegroups.com
Guys, anyone? Mario? :)

Mario Fusco

unread,
Sep 20, 2011, 9:08:56 AM9/20/11
to lam...@googlegroups.com
Hi Dmitryi,

sorry for the delay in my reply.
Yes, lambdaj's group at the moment invokes the toString method and there is no way to override this behavior. It's also not easy to me to think about an alternative. What do you suggest? Maybe to give the possibility to optionally define the method to be invoked instead of the toString one with a lambdaj's argument? With which syntax? Any suggestion is welcome.

Cheers,
Mario

Dmitriy Vsekhvalnov

unread,
Sep 20, 2011, 9:46:36 AM9/20/11
to lam...@googlegroups.com
how are using that toString() value?
Reply all
Reply to author
Forward
0 new messages