Answer the question
In order to leave comments, you need to log in
Class mapping?
Good night to all Khabrovites!
I resisted for a long time, but still I need your advice - I have a task that is not standard for me, which I cannot cope with. I need to link 4 classes with my own annotations, respectively 4 types of links (“1:1”, “1:*”, “*:*”, “*:1”). That is, in the final result, on demand, the program must determine all the links for any class. The Java language, ORM is impossible - only its annotations. I will be eternally grateful to everyone who responds
Answer the question
In order to leave comments, you need to log in
As far as I understand the problem, you only need one annotation, like:
public @interface ClassReference {
Class<?>[] values();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question