Posts by Samuel Torga • 88 points
2 posts
-
3
votes2
answers211
viewsA: how can I get the last message from my`msg`field with`GROUP BY`
The Problem It turns out that the columns of visualizado and msg are not being used in GROUP_BY and are not being used by any aggregation function (SUM(), AVG(), etc..). In MYSQL there is a flag…
-
4
votes1
answer134
viewsA: Problems with LAZY - could not initialize proxy - in Session
Without the full stack trace it gets a little complicated, but I believe the problem is in os.getObra().getId(). Lazyinitializeexception happens when a related object defined as Lazy has not been…