AbstractQueryFactory: Implement Serializable (required for SessionScoped injection)