[hibernate-dev] New metamodel and NamingStrategy

Steve Ebersole steve at hibernate.org
Fri Feb 17 14:01:09 EST 2012

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

steve at hibernate.org

More information about the hibernate-dev mailing list