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