-->
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: Question about ConstraintViolationException returning Null
PostPosted: Tue Oct 11, 2005 4:25 pm 
Newbie

Joined: Tue Oct 11, 2005 4:04 pm
Posts: 2
Hibernate version:3.1

Name and version of the database you are using:Oracle 9.2

Hi,

I try to rely on ConstraintViolationException.getConstraintName method
but it return null

I haved named all the constraints in the create table sql statement

Is there something else to do to get this working?

Thank you.


Top
 Profile  
 
 Post subject: More information
PostPosted: Wed Oct 12, 2005 9:26 am 
Newbie

Joined: Tue Oct 11, 2005 4:04 pm
Posts: 2
Hi,

I have looked at the oracle dialect, and the pb comes from
the fact that the extractUsingTemplate method is called with
start and end arguments in english ("constraint (", ") violated", ...)

My error message is in french

"violation de contrainte unique (<constraint name>)\n"

So what to do?

Do I have to create my own Oracle9Dialect_fr ?

Is there any other solutions ?

Could the extractUsingTemplate be abstracted from the language used?

I welcome any help.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.