-
Notifications
You must be signed in to change notification settings - Fork 14
FMWK-467 Issue using refs with yaml file #161
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,11 @@ private static TypeMapper getMapper(Class<?> clazz, AnnotatedType type, IBaseAer | |
} else { | ||
// Reference | ||
ReferenceConfig ref = binConfig.getReference(); | ||
typeMapper = new ObjectReferenceMapper(ClassCache.getInstance().loadClass(clazz, mapper), ref.getLazy(), ref.getBatchLoad(), ref.getType(), mapper); | ||
typeMapper = new ObjectReferenceMapper( | ||
ClassCache.getInstance().loadClass(clazz, mapper), | ||
ref.getLazy() == null ? false : ref.getLazy(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we assign defaults for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After consulting with Tim, we can improve it but at some point we will need a refactor of yaml/annotation config reading which will affect this place as well - I'm ok with the scope of this PR just because its only a single place of null check but later we will probably want to refactor/improve/clean some areas of the Java Object Mapper including this specific flow |
||
ref.getBatchLoad() == null ? true : ref.getBatchLoad(), | ||
ref.getType(), mapper); | ||
addToMap = false; | ||
} | ||
} else { | ||
|
Uh oh!
There was an error while loading. Please reload this page.