How to map private fields of parent class when using @ExternalEntity with SubClass, cannot modify parent class or subclass as they are used as an external library. #2941
Closed
ankitchandkaushik
started this conversation in
General
Replies: 1 comment
-
You would map using the method lookup. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
** Please ask your question and provide whatever background or supporting information you think might be relevant: **
How to map private fields of parent class when using @Externalentity with SubClass, cannot modify parent class or subclass as they are used as an external library.
I have a base class...
and Sub class..
I want to Map SubClass class using @Externalentity
but this produces error
dev.morphia.mapping.MappingException: Mapped field 'field1' on 'MapSubClass' does not match any fields on 'SubClass'
how to fix this issue?
** Please complete the following information: **
Server Version: 5.0
Driver Version: 4.10.2
Morphia Version: 2.3.8
Beta Was this translation helpful? Give feedback.
All reactions