Example usage for org.hibernate.type EmbeddedComponentType EmbeddedComponentType

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

Introduction

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

Prototype

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

Source Link

Usage

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

License:Apache License

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