-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: CSV file
PostPosted: Mon Dec 21, 2009 7:03 am 
Newbie

Joined: Mon Dec 21, 2009 6:59 am
Posts: 2
Hello,
This is my first post here. I am newbie for hibernate.
I wanted to know can i import/export data to CSV,Excel,Text files using hibernate??
If yes then how it can be done ??

Thanks in advance...


Top
 Profile  
 
 Post subject: Re: CSV file
PostPosted: Mon Dec 21, 2009 10:36 am 
Beginner
Beginner

Joined: Tue Nov 03, 2009 9:38 am
Posts: 24
Hibernate is an OR-Mapper and as such, I'd say there's no built-in export facility.

What you can do is:
1. load a list of entities via hibernate
2. write the CSV,Text,XLS etc. your self, e.g. by using apache POI for Excel.


Top
 Profile  
 
 Post subject: Re: CSV file
PostPosted: Tue Dec 22, 2009 1:14 am 
Newbie

Joined: Mon Dec 21, 2009 6:59 am
Posts: 2
Oh yeah..Thanks a lot Thomas.
I got it..Is it fine if i go for JasperReport to generate report or any other optimum option is there??


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.