I have the following code on my Hibernate class:
public List<Something> getSomethingList(Integer[] ls){
String sql = "FROM SOMETHING WHERE IDSOMETHING IN (:ls)";
return this.getSession().createQuery(sql).setParameterList("ls", ls).list();
}
I Have an warning on the return line. The warning is the following:
Type safety: The expression of type List needs unchecked conversion to conform to List<Something>
I know this is not a big issue but how can I solve this warning?
Thanks