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: Discriminator in NamingStrategy.propertyToColumnName()
PostPosted: Wed Apr 30, 2008 2:07 pm 
Newbie

Joined: Wed Apr 30, 2008 1:49 pm
Posts: 7
Hi,

I am trying to implement propertyToColumnName() from NamingStrategy as part of a new Naming Strategy. For a specific class, I would like to prepend every column name with its discriminator value (defined in the <discriminator> element). Accessing the mapping data is the easy part. The only problem comes from the signature of propertyToColumnName():

Code:
public String propertyToColumnName(String propertyName)


This method only takes the name of the property as an argument, not the class name. The class name is not provided. Consequently I can not query the mapping data for a specific class and find out the discriminator.

Am I following a wrong approach, or should this functionality be added to the NamingStrategy ?


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.