LazyInitializationException when adding to a list that is held within a entity class using hibernate and gilead for gwt

前端 未结 2 1138
你的背包
你的背包 2021-01-22 10:46

Right so i am working with hibernate gilead and gwt to persist my data on users and files of a website. my users have a list of file locations. i am using annotations to map my

2条回答
  •  旧巷少年郎
    2021-01-22 11:16

    This exception means that the FileLocations association is not yet loaded and you are trying to access it. There is no session opened, and there is no way to load the association. This is the LazyInitializationException.

    Edit: Read Bozho's post for the solution.

提交回复
热议问题