aspose file tools
The moose likes Object Relational Mapping and the fly likes File Storing in Hiberbnate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "File Storing in Hiberbnate" Watch "File Storing in Hiberbnate" New topic
Author

File Storing in Hiberbnate

vijay yadav
Greenhorn

Joined: Aug 20, 2007
Posts: 8
Hi Everybody,

Can anybody explain me file storing concept in hibernate with simple example on struts-hibernate integration.

Thanks,
vijay
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
Hibernate has no notion of storing files. It does support the SQL BLOB datatype, which can be used to store the contents of files. Is that what you're asking about?
vijay yadav
Greenhorn

Joined: Aug 20, 2007
Posts: 8
Hi Mr Ulf,
Thank you for your reply,
I am using struts,hibernate and SQL Server for developing a simple application.
I need to upload files and store in Database.How can i do that in DAO can you please explain me.

Thanks,
Vijay.
[ August 23, 2007: Message edited by: vijay yadav ]
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
There are various ways to upload a file using Java in a web application; see here for some starting points.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Storing in Hiberbnate