entity manager createNativeQuery | java php laravel linux mysql sql bootstrap html css query java php laravel linux mysql sql bootstrap html css query: entity manager createNativeQuery

Tuesday, September 4, 2012

entity manager createNativeQuery

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

saifiahmada.com adalah blog belajar programming Indonesia, membahas lengkap materi bahasa pemrograman: code HTML, CSS, Bootstrap, Desain, PHP, MySQL, coding Java, Query, SQL, dan dunia linux