• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array save in database with Hibernate on swing application

 
Georgios Chatziefstratiou
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have create swing application.I Create vouchers 24 digits and i put them on an array to print them.Then i want to save them in a database.How can i save an array in a table?I have use Hibernate have create the files that hibernate must have(Hibernate.cfg ++++..........Pojo from database) but i don't understand how to save the array in the database?I have read about serialization but the pojo made from Hibernate already made it the implementation.what else should i do any example to see?
should i give the code to understand it ?

this is the code i have a actionlisterner and i do







the model is



have i done this right any help?
 
Georgios Chatziefstratiou
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone ?
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this question is more about Hibernate than Swing. So, I have moved this to the ORM forum.
 
Georgios Chatziefstratiou
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranganathan Kaliyur Mannar wrote:I think this question is more about Hibernate than Swing. So, I have moved this to the ORM forum.

yes and no you can do it but it's implementet in swing
 
Georgios Chatziefstratiou
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic