JPA TOPLINK :: List<TEMPSP> yang berasal dari query native
[sourcecode language="java"]public List<Tempsp> getNospgtempBelomCommit(){
String query = "select h.* from TEMP_SP h left join SP s on s.NO_TEMP = h.NO_TEMP where s.NO_TEMP is null";
List<Tempsp> list = (List<Tempsp>) this.entityManager.createNativeQuery(query,Tempsp.class).setHint("toplink.refresh", "true").getResultList();
return list;
}[/sourcecode]
Sukses
No comments:
Post a Comment