The same happens for: select new Person( firstName, null, lastName ) from Person where lastName=? Hibernate would incorrectly use a constructor with a single String argument, if one exists; if no constructor exists that has a single String argument, then an exception is thrown. |