@Override public String getName() { return getBindableJavaType().getSimpleName(); }
@Test public void testName() { Assert.assertEquals(defaultTypeEntityObj.getName(), "SingularEntity"); }
/** * Sets the up. * * @param <X> * the generic type * @throws Exception * the exception */ @SuppressWarnings("rawtypes") @Before public <X extends Class> void setUp() throws Exception { X clazz = (X) SingularEntity.class; //AbstractManagedType<X> managedType = null; defaultTypeEntityObj = new DefaultEntityType<X>(clazz, PersistenceType.ENTITY, null); }
/** * Sets the up. * * @param <X> * the generic type * @throws Exception * the exception */ /*@SuppressWarnings("rawtypes") @Before public <X extends Class> void setUp() throws Exception { X clazz = (X) SingularEntity.class; AbstractManagedType<X> managedType = null; managedType = new DefaultEntityType<X>(clazz, PersistenceType.ENTITY, null); }*/ @Test public void testPersistenceClassBindableType() { Assert.assertEquals(defaultTypeEntityObj.getBindableType(), BindableType.ENTITY_TYPE); }
Attribute attribute = entityType.getAttribute(columnName);
managedType = new DefaultEntityType<X>(clazz, PersistenceType.ENTITY, (AbstractIdentifiableType) getType(clazz.getSuperclass(), isIdClass));
/** * The Class AttributeBuilder. * * @param <X> * the generic type * @param <T> * the generic type */ private class AttributeBuilder<X, T> { /** The attribute. */ private Field attribute; /** The attribute type. */ private Type<T> attributeType; /** The managed type. */ private AbstractManagedType<X> managedType; /** * Instantiates a new attribute builder. * * @param attribute * the attribute * @param managedType * the managed type * @param attributeType * the attribute type */