-->
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: what is the mapping type for image
PostPosted: Thu May 08, 2008 12:45 pm 
Newbie

Joined: Sun Jan 27, 2008 4:26 pm
Posts: 18
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

What is the mapping type for image in .net,we are using sql server 2005 in development environment,when we are using sql server 2005 if i keep image mapping type as byte or binaryblog its not giving any error.When i deploy onto server there we are having sql server 2000.i am getting error like
Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'
Could you please tell how to get rid of this
Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 08, 2008 1:36 pm 
Beginner
Beginner

Joined: Thu Nov 29, 2007 4:36 am
Posts: 20
I'm not sure for .net , but I found how it's done in java

http://www.hibernate.org/73.html

Probably it will be the same thing in .net


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 09, 2008 6:01 am 
Newbie

Joined: Sun Jan 27, 2008 4:26 pm
Posts: 18
I could not able to understand how to convert the java code to .net nhibernate.It would be great if you provide me the code.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 10, 2008 9:40 am 
Beginner
Beginner

Joined: Thu Nov 29, 2007 4:36 am
Posts: 20
hmm .. just reread you question . And sorry to say, I have no answere to that one


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.