-->
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.  [ 1 post ] 
Author Message
 Post subject: Different column prefixes per table?
PostPosted: Mon Jul 11, 2005 10:09 am 
Beginner
Beginner

Joined: Sun Jun 13, 2004 9:49 pm
Posts: 38
Is it possible to have a different column prefix auto assigned per table.

e.g.

BusinessUnit class -> BUSINESS_UNIT table. prefix of BU_ for columns
MasterProduct class -> MASTER_PRODUCT table. prefix of MPRD_ for columns

I'm using the hibernate tools with an "annotationconfiguration" and hbm2ddl to generate the schema. Is there some way of annotating the classes so that they are given the prefix?

I've looked at DefaultNameingStrategy and ImprovedNamingStrategy and they do not seem to work on a per-table basis.

Any help would be appreciated


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.