我有一个这样的项目结构:
HRPayGenerateController pay = new HRPayGenerateController(_paygenerateService);
Guid[] tabledata = new Guid[1];
tabledata[0]= hrPayGenarate.Id;
_HRPayGenerate.Pay(tabledata);
public dynamic Pay(Guid[] TableData)
{
Guid BusinessUnitId = Guid.Parse(Session["BusinessUnitId"].ToString());
}
两个实体都指向同一张表。并尝试使用src
|__example
|_a
|_A.java
|_b
|_A.java
进行查询,
criteria-api
即使使用完整的类路径后,为什么也得到实体public static List<A> test() {
EntityManager em = ENTITY_MANAGER_FACTORY.createEntityManager();
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery<example.a.A> criteriaQuery = criteriaBuilder.createQuery(example.a.A.class);
Root<example.a.A> root = criteriaQuery.from(example.a.A.class);
criteriaQuery.select(root);
return em.createQuery(criteriaQuery).getResultList();
}
而不是b.A
?