This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Q 4 C. Bauer & G. King (14): blobs and clobs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Q 4 C. Bauer & G. King (14): blobs and clobs" Watch "Q 4 C. Bauer & G. King (14): blobs and clobs" New topic
Author

Q 4 C. Bauer & G. King (14): blobs and clobs

Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Dear authors,

Is there anything in particular that
has to be taken care of in the configuration
of hibernate if a database table has BLOB or
CLOB datatypes?

Cheers,

Gian Franco Casula


"Eppur si muove!"
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Using Clobs with Oracle and Hibernate

Hibernate 1.2.1 comes with support for Clobs (and Blobs). Just use the clob type in your mapping file and java.sql.Clob in your persistent class.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
wood burning stoves
 
subject: Q 4 C. Bauer & G. King (14): blobs and clobs
 
Similar Threads
india shopping site question
sheet for number of correct answers of hfsj final mock !
Whats your best movie
who has the weblogic451
Where is the values() method documented for Enum?