Hibernate: Many-to-one using Formula
问题 I hope someone can help me find an answer. I'm working with a legacy database and I can't change any of the preexisting tables, because other apps depend on them. I have three main existing tables: A,B,C . A has a column with reference to B(many to one relation). The problem is that it should have a relation to C not to B. So I have created a *-1 mapping BC. Tables: A,B,C,BC (all have ID field) A-B many to one B-C many to one through BC Needed:A-C without altering A,B or C I don't want to