aspose file tools*
The moose likes Object Relational Mapping and the fly likes Array save in database  with Hibernate on swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Array save in database  with Hibernate on swing application" Watch "Array save in database  with Hibernate on swing application" New topic
Author

Array save in database with Hibernate on swing application

Georgios Chatziefstratiou
Ranch Hand

Joined: May 26, 2012
Posts: 83
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

Joined: May 26, 2012
Posts: 83
Anyone ?
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1083
    
  10

I think this question is more about Hibernate than Swing. So, I have moved this to the ORM forum.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Georgios Chatziefstratiou
Ranch Hand

Joined: May 26, 2012
Posts: 83
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

Joined: May 26, 2012
Posts: 83
Anyone?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array save in database with Hibernate on swing application