Fix for https://github.com/mysema/querydsl/issues/386

Fix for https://github.com/mysema/querydsl/issues/386