Note that this was created in response to https://discourse.hibernate.org/t/error-in-native-query-where-column-is-mapped-twice/6781?u=mconner