Joined: Wed Jan 29, 2014 5:19 am Posts: 2
|
I just think how hibernate is able to join a table which name is stored as a variable in a column. Example (this is just an example! i know this example is ridiculous, but assume there might be similar cases which make more sense!)
Assume we have 3 tables defined:
Address -------- column1 : name column2 : table_name
Home ----- column1 : street
Office ------ column1 : street
Content of Address e.g.
Address --------------------- name | table_name --------------------- Bert | Home Simpson | Office
Is it possible in Hibernate to join by "variable name"??
Thanks a lot! Klaus
-> i just recognized that this could be implemented by @any tags see http://www.jroller.com/eyallupu/entry/hibernate_the_any_annotation
-Klaus
|
|