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 ?