Can the same CriteriaBuilder (JPA 2) instance be used to create multiple queries?
- by pkainulainen
This seems like a pretty simple question, but I have not managed to find a definitive answer yet. I have a DAO class, which is naturally querying the database by using criteria queries. So I would like to know if it is safe to use the same CriteriaBuilder implementation for the creation of different queries or do I have to create new…