0

The question states what I want to do. I have a bunch of classes with attributes annotated with JAXB annotations, and the results are coming back blank because of lazy loading I think.

Derek
  • 11,715
  • 32
  • 127
  • 228

2 Answers2

1

I know there are gorm.default.mappings but I see nothing documented for setting the property you want

I know you can brute force it this way

// DataSource.groovy
hibernate {
    max_fetch_depth=0
}

But I believe overall it is better to leave the configuration the way it is. I can explain it but this question/response covers it and it already typed up

Community
  • 1
  • 1
Aaron Saunders
  • 33,180
  • 5
  • 60
  • 80
  • I realize the performance implications - but if I can't reliably get data marshalled to XML my application is basically useless...I tried to set lazy:false for particular properties in the mapping of the domain and I still didnt get the right thing back – Derek Nov 04 '10 at 15:11
0

Well, simply use fetchType=EAGER

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140