jpa metamodel gen and search