Coba sesuatu seperti ini:
em.createNamedQuery("SELECT id, date, cast(null as char(1)) name, cast(null as char(1)) kind from sale", Sale.class);
Harap perhatikan bahwa char
mungkin perlu diubah berdasarkan tipe data name
dan kind
.
Coba sesuatu seperti ini:
em.createNamedQuery("SELECT id, date, cast(null as char(1)) name, cast(null as char(1)) kind from sale", Sale.class);
Harap perhatikan bahwa char
mungkin perlu diubah berdasarkan tipe data name
dan kind
.