posted 13 years ago
Hi there,
is there anyway through annotations to create a list of arbitrary size to be bound to a persistent class, in such a way that it's not necessary to create an additional class?
Let me pose a short example:
Class A holds a list of "references" to Class B at running time.
Class B has no idea about A, and doesn't need to.
But somewhere I need to recall which references of B are bound to an instance of A.
Normally I would do this creating an intermediary persistent class, let's call it AB, where I would store a reference to both A and B, and would make AB persistent aswell. However if possible since I have to recall those values only at one very specific point of my application, I prefer to avoid creating the intermediary class and let's say store the ids Integer references of B in a persistent member of A, which at running time would be converted in a List with references to instances of class B.
Is that possible?
Manny thanks,
Carlos.