/** * 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); }
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 */