@Test public void testName() throws Exception { DbTableMeta dbTableMeta = new DbTableMeta(); dbTableMeta.setName("HOGE"); EntityDesc entityDesc = factory.getEntityDesc(dbTableMeta); assertEquals("Hoge", entityDesc.getName()); }
public EntityDesc getEntityDesc(DbTableMeta tableMeta) { EntityDesc entityDesc = new EntityDesc(); doName(tableMeta, entityDesc); doTable(tableMeta, entityDesc); doAttributeDesc(tableMeta, entityDesc); doCompositeUniqueConstraintDesc(tableMeta, entityDesc); return entityDesc; }
EntityDescFactoryImpl implements EntityDescFactory { public EntityDesc getEntityDesc(DbTableMeta tableMeta) { EntityDesc entityDesc = new EntityDesc(); doName(tableMeta, entityDesc); doTable(tableMeta, entityDesc); doAttributeDesc(tableMeta, entityDesc); doCompositeUniqueConstraintDesc(tableMeta, entityDesc); return entityDesc; } }
EntityDescFactoryImpl implements EntityDescFactory { public EntityDesc getEntityDesc(DbTableMeta tableMeta) { EntityDesc entityDesc = new EntityDesc(); doName(tableMeta, entityDesc); doTable(tableMeta, entityDesc); doAttributeDesc(tableMeta, entityDesc); doCompositeUniqueConstraintDesc(tableMeta, entityDesc); return entityDesc; } EntityDescFactoryImpl(
            PersistenceConvention persistenceConvention,
            AttributeDescFactory attributeDescFactory,
            CompositeUniqueConstraintDescFactory compositeUniqueConstraintDescFactory); }
EntityDescFactoryImpl implements EntityDescFactory { public EntityDesc getEntityDesc(DbTableMeta tableMeta) { EntityDesc entityDesc = new EntityDesc(); doName(tableMeta, entityDesc); doTable(tableMeta, entityDesc); doAttributeDesc(tableMeta, entityDesc); doCompositeUniqueConstraintDesc(tableMeta, entityDesc); return entityDesc; } EntityDescFactoryImpl(
            PersistenceConvention persistenceConvention,
            AttributeDescFactory attributeDescFactory,
            CompositeUniqueConstraintDescFactory compositeUniqueConstraintDescFactory); EntityDesc getEntityDesc(DbTableMeta tableMeta); }
EntityDescFactoryImpl implements EntityDescFactory { public EntityDesc getEntityDesc(DbTableMeta tableMeta) { EntityDesc entityDesc = new EntityDesc(); doName(tableMeta, entityDesc); doTable(tableMeta, entityDesc); doAttributeDesc(tableMeta, entityDesc); doCompositeUniqueConstraintDesc(tableMeta, entityDesc); return entityDesc; } EntityDescFactoryImpl(
            PersistenceConvention persistenceConvention,
            AttributeDescFactory attributeDescFactory,
            CompositeUniqueConstraintDescFactory compositeUniqueConstraintDescFactory); EntityDesc getEntityDesc(DbTableMeta tableMeta);  }