Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EbeanServer.refresh() not loading/refreshing @Lob property unless it is annotated with @Basic(fetch=FetchType.EAGER) #177

Closed
wenzhihong2003 opened this issue Jul 24, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@wenzhihong2003
Copy link

the same as descript the title.

@wenzhihong2003
Copy link
Author

in the com.avaje.tests.basic.lob.TestBasicClobNoVer testcase

@rbygrave
Copy link
Member

No, this is a bug in the refresh() query. The fix for this issue is that a 'refresh' query should include all properties (rather than the current behavior which is not including @lob properties UNLESS those properties are explicitly marked with @basic(fetch=FetchType.EAGER).

The workaround is to add the @basic(fetch=FetchType.EAGER) ... to the @lob property with the side effect that it is now eagerly fetched by default.

@rbygrave rbygrave changed the title faq: EbeanServer.refresh() cannt load @Lob property, is it right? EbeanServer.refresh() not loading/refreshing @Lob property unless it is annotated with @Basic(fetch=FetchType.EAGER) Jul 25, 2014
rbygrave added a commit that referenced this issue Jul 25, 2014
…erty unless it is annotated with @basic(fetch=FetchType.EAGER)
@rbygrave rbygrave added the bug label Jul 25, 2014
@rbygrave rbygrave added this to the 4.2.0 milestone Jul 25, 2014
@rbygrave rbygrave self-assigned this Jul 25, 2014
@rbygrave
Copy link
Member

Fixed in head/master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants