Hello,
I'm stumped because I don't really know how to translate this in Hibernate terminology:
I have classes A 1--1 B. The database has tables of the form A 1---* C. The B class has to load all its C records (which have a foreign key to A), but it is not itself a persistent class. I can add the C class as a persistent class, but how can I tell Hibernate to use B as a "non-persistent wrapper"?
What is the Hibernate terminology for a non-persistent intermediate class?
(I have to attempt this mapping because both the object model and the database model are legacy. I think I could get this done with C as composite-element of B if only B would be persistent, but it isn't and will not be in the far future. Business as usual, I guess ;-)
Thanks,
Serge.
|