-->
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: Hibernate naming convention relating to particular models.
PostPosted: Wed Jul 28, 2010 4:04 pm 
Newbie

Joined: Wed Jul 28, 2010 3:49 pm
Posts: 1
Is it possible to declare a particular naming convention, in this case CamelCase over _underscore, on a particular model?

Hibernate use underscore as default, but I require 2 models of my models to use camelcase instead of underscore as database column. Is it possible to set a configuration on only 2 models, while leaving the rest of the models as default (meaning _underscore convention in column name).

example:
default hibernate: model class variable: rowId - database column: row_id.
What I need: model class variable: rowId - database column: rowId

If anybody has any information, article, tutorial it would be greatly appreciated.

Thanks,
Marcin


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.