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.  [ 6 posts ] 
Author Message
 Post subject: hbm2ddl error when comment contains a quote
PostPosted: Thu Aug 31, 2006 12:53 pm 
Newbie

Joined: Thu Aug 31, 2006 12:44 pm
Posts: 3
Hi,

I'm facing the issue HHH-756 (http://opensource.atlassian.com/projects/hibernate/browse/HHH-756), but I don't understand why it is marked as rejected?

Thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 3:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you db doesn't support apostrophes then you can't use it in a comment.

you need to use your db's support for quoting.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 5:58 am 
Newbie

Joined: Thu Aug 31, 2006 12:44 pm
Posts: 3
Actually, the DB is Oracle.

So I wished that hibernate tools doubled the apostrophes in the comment (that's the way Oracle handles this), such as :

comment on table ACTIVITE is
'L''activite';


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 6:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so why don't you put '' in there ? :)

if it is really important for you submit a patch that handles it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 6:28 am 
Newbie

Joined: Thu Aug 31, 2006 12:44 pm
Posts: 3
I don't want to put '' in the XML ... because I have always been told that Hibernate was great and handled the DB specificities ;-)

Anyway, I'll be glad to try to propose a patch, so could you please give me a hand by telling me what classes I shall look for?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 6:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Table.getComment()
Column.getComment()

btw. looks like most of it is actually close to be supported since we have dialect.getTableComment and dialect.getColumnComment that could be used to do dialect specific handling.

note, i actually think '' is ansi-sql; but not 100% sure.

_________________
Max
Don't forget to rate


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