I’m using hibernate models for articles.
I know there are hints for hibernate to “ignore” fields and such, or create groups to only select specific fields from a model, but the issue I’m having is a recursive issue:
My articles have a few recommended other articles.
This is a simple Many to many in a Set with a maximum of 5 other Articles.
However because those articles also have recommended articles; this makes it very slow.
(side note: I’m using it with the play framework and json serializing, so all nodes are visited, no way to lazy load it in that regard)
What I’d want to do is have hibernate only go 1 layer deep into recommendeds (but still get the Author of a recommend article), or somehow be able to merge a group of what fields I want with the childs specifically.
As far as I’ve found out I can only apply a grouping to the base Model.
I can’t seem to find anyway to limit just the childs of my Article, without modifying the base.
Thanks in advance!