About dependency

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery multiselect( List selectionList ) Specify the selection items that are to be returned in the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends

Method javax.persistence.criteria.CriteriaQuery CriteriaQuery multiselect( Selection... selections ) Specify the selection items that are to be returned in the query result. Replaces the previously specified selection(s), if any. The type of the result of the query execution depends

Annotation Element javax.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Default value: "" Since: JPA 1.0

Annotation Element javax.persistence.PersistenceUnit String name (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Default value: "" Since: JPA 1.0