HHH-10810 - ImplicitIndexColumnNameSource should extend ImplicitNameSource.

This commit is contained in:
Dmytro Bondar 2016-07-07 09:57:52 +03:00 committed by Vlad Mihalcea
parent 63ea1f812a
commit 29edc4f367
2 changed files with 30 additions and 3 deletions

View File

@ -11,8 +11,10 @@ import org.hibernate.boot.spi.MetadataBuildingContext;
/**
* @author Steve Ebersole
* @author Dmytro Bondar
*/
public interface ImplicitIndexColumnNameSource {
public AttributePath getPluralAttributePath();
public MetadataBuildingContext getBuildingContext();
public interface ImplicitIndexColumnNameSource extends ImplicitNameSource {
AttributePath getPluralAttributePath();
}

View File

@ -0,0 +1,25 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.boot.model.naming;
import org.hibernate.testing.TestForIssue;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author Dmytro Bondar
*/
public class ImplicitIndexColumnNameSourceTest {
@Test
@TestForIssue(jiraKey = "HHH-10810")
public void testExtensionImplicitNameSource() {
assertTrue( ImplicitNameSource.class.isAssignableFrom( ImplicitIndexColumnNameSource.class ) );
}
}