When I tried to return result it will show return type mismatch. What can I do?
@Override
@SuppressWarnings("unchecked")
public List<StudentDetail> getAllStudent(){
DetachedCriteria.forClass(QrCodeList.class).add(Property.forName("userId")
.eq(
DetachedCriteria.forClass(User.class).setProjection(Property.forName("id"))
)
);
}