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

It's impossible to use abstract class like a custom mapper #108

Closed
gderboux opened this issue Aug 2, 2016 · 3 comments
Closed

It's impossible to use abstract class like a custom mapper #108

gderboux opened this issue Aug 2, 2016 · 3 comments
Milestone

Comments

@gderboux
Copy link

gderboux commented Aug 2, 2016

When a mapper use a custom mapper, the custom mapper constructor is call in the mapper constructor. If custom mapper is in an abstract class there is an error because it's impossible to instantiate an abstract class.

Is there any issue ?

Thanks for V0.15

@slemesle
Copy link
Collaborator

slemesle commented Aug 2, 2016

In fact if the mapper itself is an abstract class, it will be used as a custom mapper for non abstract methods.
So there is not much to do to allow the use of an abstract custom mapper.

@slemesle
Copy link
Collaborator

slemesle commented Aug 2, 2016

That does work now.

@gderboux
Copy link
Author

gderboux commented Aug 3, 2016

Thank you for your quick reply :)

@slemesle slemesle closed this as completed Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants