-->
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: controlling @table annotation when generating java classes
PostPosted: Thu May 17, 2007 8:37 pm 
Newbie

Joined: Wed May 16, 2007 5:37 am
Posts: 2
jboss ide 2.0.0 beta 2
hibernate tools 3.2.0 beta 8
seam ver 1.2.1
I am using a 3rd party progress 9.1d database and the developers have used hyphens in nearly every table and column name (around 1300) with a smattering of reserved/keywords in there for good measure. The JDBC driver does not support automatically inserting quoted identifiers. Can resolve the issue via the @table, @column name and backticks in the java classes. However due to the sheer volume of entries I am wondering if there is any way to modify the java code generation (via seam or hbm) so that the annotations automatically include the backticks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use later version of seam-gen / hibernate tools; it should do a better job.

otherwise it is controllable by implementing the needsQuote in MetaDataDialect

_________________
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.  [ 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.