-
Notifications
You must be signed in to change notification settings - Fork 484
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
LDAP-305: Permit ODM to allow inheritance #340
Comments
daniel carter said: This should be trivial to do by changing to use existing spring-framework utility methods. Then field behaviour will be the same as the rest of spring. Such a limitation that spring-ldap does not allow object-oriented programming |
Hi, |
Just run into this issue... 4 years later... still not fixed. :-( Background: I have to implement a ldap-scheme which has common attributs. (each objectClass has a base of the same 3 attributes) Wanted to put this 3 attributes into a base class. And inhert the concrete classes (Person, OrgUnit, ...) from this. |
In the meantime, perhaps a comment in the @entry documentation stating that it doesn't support class inheritance. I've had the impression that I was doing something wrong in my project by using a class inheritance chain of customObject extends InterOrgPerson which extended OrganizationalPerson which extended Person. Until I read this post. A little comment in the @entry annotation saying that it will only reference the fields in the annotated class and excludes parent classes would have saved me a lot of head scratching. I also feel that JPA repositories do support inheritance which led me to believe this did also. At this point, cut-and-paste along with Lombok is the intermediate solution until something changes. |
Ran into this today. Rather annoying. Please at least add a note to the @entry docs as @ricejamesh suggested. |
Hello, are there any plans to merge the PR that will close this issue? |
@oscarbrookssynacor, this is now targeted for the |
Demétrius Jubé (Migrated from LDAP-305) said:
I was trying do use some inheritance when using ODM. Looking in the Internet, I found out this thread:
http://forum.spring.io/forum/spring-projects/data/ldap/129952-permit-odm-to-allow-inheritance
But I could not find anything here to make that modification, so I am opening an issue to it.
The solution Fneuch proposed was as follow:
The text was updated successfully, but these errors were encountered: