named query must be embedded resource

named query must be embedded resource and types need to match return