List of usage examples for org.hibernate.type ComponentType ComponentType
@Deprecated
public ComponentType(TypeFactory.TypeScope typeScope, ComponentMetamodel metamodel)
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]); }