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
XML configuration for extended classes #17
Comments
the class |
They are two different classes, same name and different packages yes. |
You need to map Language soo |
I'm not sure I follow, any chance you could show me what the implementation and config file would look like for the language field only? |
<jmapper>
<class name="package.RequestS">
<attribute name="language">
<value name="language"/>
</attribute>
</class>
<class name="package.Language">
<global />
</class>
</jmapper> I hope this is helpful |
Unfortunately that didn't work. I still get the same error: It seems like I'm missing something to extend the Destination class (RequestD) to RequestBase where the variables are declared. |
try to add the configuration to RequestD as follow: <jmapper>
<class name="package.RequestD">
<attribute name="language">
<value name="language"/>
</attribute>
</class>
<class name="package.Language">
<global />
</class>
</jmapper> Meanwhile i will investigate on this issue |
I think the answer is to globally map to the destination class, this has worked for me: <jmapper>
<class name="package.RequestD">
<global/>
</class>
</jmapper> Thank you for your help! |
I'm trying to map between two classes, however the desired destination class need to extend another class. Is this possible?
I've asked this question in more detail, here:
Thanks,
Casper
The text was updated successfully, but these errors were encountered: