-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports create criteria parameter for generic type #610
Comments
You mean like a CDI But what is the usecase here? For use with |
Yes.
Not @Entity
public class TestEntity {
@Id
@GeneratedValue
Long id;
List<Integer> list;
} ParameterExpression<List<Integer>> parameter = criteriaBuilder.parameter(List.class); // cannot compile
Root<TestEntity> root = criteria.from(TestEntity.class);
criteria.select(root).where(criteriaBuilder.equal(root.get(TestEntity_.list), parameter)); |
I see. So I suppose this:
is possible in standard JPA with an |
Hibernate will map it to array now, no need |
Right, I know that, but that's not standard in the Persistence spec. |
is not type safe, We need add a Super Type Token like TypeReference
The text was updated successfully, but these errors were encountered: