The way this example is put forward, I don’t see how this could work (or have ‘worked’ before 6.x), it’s a native select query (Hibernate doesn’t subrepticiously add additional selects to those), that doesn’t select the necessary information from Building, but you still expect hibernate to somehow provide you with such information. Something definitely seems wrong with the example. |