As an example to start discussions, here is my first method proposal: public interface LogicalNamingStrategy { /** * Determine the logical table name to use for the specified entity in cases where the mapping did * not specify one explicitly. * * @param entity The entity for which to determine the table name. * * @return The table name identifier to use */ public Identifier logicalTableName(Entity entity); }
Essentially replaces NamingHelper#classToTableName On Fri 17 Feb 2012 12:25:37 PM CST, Steve Ebersole wrote: > In Austin we had discussed splitting up NamingStrategy into > LogicalNamingStrategy and PhysicalNamingStrategy. I am starting to > think though and work on that task. > > We said that the "sources" (the collective term for annotations and > hbm.xml) would return null to indicate that the logical naming should > kick in. The idea being to allow the sources to remain as true as > possible to the actual user supplied values. > > Anyway, just wanted to open this up to wider discussion. > > Btw the related issues are: > https://hibernate.onjira.com/browse/HHH-7077 > https://hibernate.onjira.com/browse/HHH-7078 > https://hibernate.onjira.com/browse/HHH-7079 > -- st...@hibernate.org http://hibernate.org _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev