-->
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.  [ 4 posts ] 
Author Message
 Post subject: Oracle 10g OrdImage data type
PostPosted: Thu Jul 05, 2007 3:45 pm 
Newbie

Joined: Sun Jan 02, 2005 10:17 pm
Posts: 13
Hibernate version: Hibernate 3.1

Name and version of the database you are using: Oracle 10g


Hi everybody,

Oracle 10g has new data types for storage images -- the OrdImage data type. Oracle also provides Java APIs (oracle.ord.im.* package) for handling OrdImage data. I was wondering if Hibernate handles this new Oracle OrdImage data type? If yes, where can I find more information on how Hibernate maps OrdImage?

For example, if I have a Java class "Image.java" defined as follows:

public class Image {

private oracle.ord.im.OrdImage image;
private oracle.ord.im.OrdImage thumbnail;

// getters and setters defined .....
}

What would the corresponding HBM file look like with respect to the Hibernate mapping type for OrdImage?

Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Oracle 10g OrdImage data type
PostPosted: Tue Sep 29, 2009 3:19 am 
Newbie

Joined: Tue Sep 29, 2009 3:10 am
Posts: 1
Hi!
I create new class extends Oracle10gDialect:
Code:
import oracle.ord.im.OrdImage;

public class Oracle10gDialectEx extends Oracle10gDialect
{
    public Oracle10gDialectEx()
    {
        super();
        registerHibernateType(OrdImage._SQL_TYPECODE, Hibernate.BLOB.getName());
    }
}

Then use it in mapping.
It nice works.


Top
 Profile  
 
 Post subject: Re: Oracle 10g OrdImage data type
PostPosted: Thu Nov 26, 2009 10:54 am 
Newbie

Joined: Thu Nov 26, 2009 10:48 am
Posts: 2
Quote:
Then use it in mapping.


Could you be more specific and tell us how you actually map? Thanks in advance.

DD


Top
 Profile  
 
 Post subject: Re: Oracle 10g OrdImage data type
PostPosted: Mon Mar 08, 2010 4:58 am 
Newbie

Joined: Mon Mar 08, 2010 4:48 am
Posts: 1
Hi! This topic interest my a lot too!
I can't find any information about this topic except this topic.
Can you give more information about how to use this Oracle dialect?

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.