0

how to save data with query in zkoss?

asked 2015-01-09 09:20:38 +0800

jwasky gravatar image jwasky
11 3

i want to save this data with query, can somebody help me, please?

save.setNikkaryawan(angsuran.getNikkaryawan()); save.setJumlahpinjaman(Long.parseLong(txtPinjam.getValue())); save.setJumlah_angsuran(Long.parseLong(txtAngsuran.getValue()));

delete flag offensive retag edit

Comments

if i try hibernate, i only can save one data on my table, i want to get some data on my table in , how to do this?

jwasky ( 2015-01-10 04:51:11 +0800 )edit

try{ ses.saveOrUpdate(ob); //but only 1 of data stored, how can some of the data stored at the same time? tx.commit();

jwasky ( 2015-01-10 04:55:04 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-09 12:01:16 +0800

Darksu gravatar image Darksu
1991 1 4

Hello jwasky,

It all depends on what technology you want to use (jdbc, hibernate, spring).

The following url's provide some good examples on how you can accomplish your task:

http://books.zkoss.org/wiki/ZKDeveloper%27sReference/Integration/Hibernate

http://www.journaldev.com/3481/hibernate-save-vs-saveorupdate-vs-persist-vs-merge-vs-update-explanation-with-examples

http://books.zkoss.org/wiki/ZK%20Developer's%20Guide/Integrate%20with%20Backend%20Frameworks

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-01-09 09:20:38 +0800

Seen: 8 times

Last updated: Jan 09 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More