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.  [ 2 posts ] 
Author Message
 Post subject: session.load when fields are CHAR not work !!!
PostPosted: Tue Oct 19, 2004 2:33 pm 
Newbie

Joined: Tue Oct 19, 2004 7:09 am
Posts: 2
Location: S
Hi everbody !!!

I've a following tables in a Oracle 9i:

Code:
CREATE TABLE VENDEDOR_CLIENTE (
  COD_VENDEDOR  CHAR (6)      NOT NULL,
  COD_CLIENTE   CHAR (14)     NOT NULL,
  PRIMARY KEY ( COD_CLIENTE, COD_VENDEDOR ) ) ;


CREATE TABLE VENDEDOR_CLIENTE2 (
  COD_VENDEDOR  VARCHAR2 (6)      NOT NULL,
  COD_CLIENTE   VARCHAR2 (14)     NOT NULL,
  PRIMARY KEY ( COD_CLIENTE, COD_VENDEDOR ) ) ;


the session.load works for VENDEDOR_CLIENTE2,
but catch for VENDEDOR_CLIENTE.

I'm using java.lang.String in mapping.

<b>
Are there anything wrong ?
or
Is it a bug of Hibernate or JDBC Driver ?
</b>


Hibernate version: 2.1.6

_________________
Adriano Alves Dornelas


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 10, 2006 4:08 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Catch what ???

What is your stacktrace ? (by the way, that's why at the creation of a new thread, the met exceptions are asked for).

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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