fixed problem with int and namedQuery