https://devhubby.com/thread/how-to-execute-query-with-union-in-hibernate