[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3641) Add tableName argument to the NamingStrategy columnName method
Paweł Kępka (JIRA)
noreply at atlassian.com
Wed Dec 10 14:47:38 EST 2008
Add tableName argument to the NamingStrategy columnName method
--------------------------------------------------------------
Key: HHH-3641
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3641
Project: Hibernate Core
Issue Type: New Feature
Components: core
Reporter: Paweł Kępka
Priority: Minor
I have a database where each table has its suffix (for instance ITEM_IT) and where columns in the tables are prefixed with this suffix (id column for ITEM_IT is ITID). I would like to use NamingStrategy to declare id property in entities super class with column name ID and not to have to override it in each subclass.
The easiest solution which would work for me would be adding new argument for columnName method in the NamingStrategy interface:
String columnName(String tableName, String columnName);
I guess it could be useful in other cases too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list