HHH-10810 - ImplicitIndexColumnNameSource should extend ImplicitNameSource.
This commit is contained in:
parent
63ea1f812a
commit
29edc4f367
|
@ -11,8 +11,10 @@ import org.hibernate.boot.spi.MetadataBuildingContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
|
* @author Dmytro Bondar
|
||||||
*/
|
*/
|
||||||
public interface ImplicitIndexColumnNameSource {
|
public interface ImplicitIndexColumnNameSource extends ImplicitNameSource {
|
||||||
public AttributePath getPluralAttributePath();
|
|
||||||
public MetadataBuildingContext getBuildingContext();
|
AttributePath getPluralAttributePath();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue