Example usage for org.hibernate.type ComponentType ComponentType

List of usage examples for org.hibernate.type ComponentType ComponentType

Introduction

In this page you can find the example usage for org.hibernate.type ComponentType ComponentType.

Prototype

@Deprecated
public ComponentType(TypeFactory.TypeScope typeScope, ComponentMetamodel metamodel) 

Source Link

Usage

From source file:com.javaetmoi.core.persistence.hibernate.TestReflectionUtil.java

License:Apache License

@Test
public void getPropertyNamesFromComponentType() {
    ComponentType componentType = new ComponentType(null, metadata);
    String[] propertyNames = ReflectionUtil.getValue("propertyNames", componentType);
    assertNotNull(propertyNames);/*from   w  w  w  . j  av a  2  s .c o  m*/
    assertEquals(2, propertyNames.length);
    assertEquals("client", propertyNames[0]);
}