Avaje - EBean - Partial Object Query disable Lazy Loading

前端 未结 2 945
挽巷
挽巷 2021-01-22 02:50

I\'m developing an app using Play! Framework 2.1.3, using EBean for the model layer I wanna be able to execute a Partial Object Query and not have the un-selected properties laz

2条回答
  •  执笔经年
    2021-01-22 03:07

    I have solved this issue by using the standard JDBC interface using Statements and ResultSets on the queries that I require not to have lazy loading on.

    As a side note, turns out that in the case of Scala, direct field access does not use Lazy Loading, but unfortunately it is not the language I am using for my application.

提交回复
热议问题