-->
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: Override column prefix for DefaultComponentSafeNamingStrateg
PostPosted: Thu Aug 26, 2010 5:29 pm 
Beginner
Beginner

Joined: Thu Jul 08, 2004 8:56 am
Posts: 23
Hi all,

Is there any way to override the default (property name) prefix for an embedded class when using DefaultComponentSafeNamingStrategy?
It is clear that DefaultComponentSafeNamingStrategy is a huge advantage when compared to EJB3NamingStrategy but still it may give huge column identifiers. I see that a possible workaround is to have properties accessed directly from the field, define a short field name and have the usual property name on getter and setter but this seems an ugly hack.
I tried using AttributeOverrides, @Column and even @AssociationOverride to replace the property prefix but with no success.

Does anyone know if there is any solution for this?

kind regards,

_________________
Rafael Ribeiro


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.