@Test public void testPrimaryKeyDescList() throws Exception { EntityMeta entityMeta = entityMetaFactory.getEntityMeta(Aaa.class); TableDesc tableDesc = tableDescFactory.getTableDesc(entityMeta); assertNotNull(tableDesc.getPrimaryKeyDesc()); }
public TableDesc getTableDesc(EntityMeta entityMeta) { String fullName = entityMeta.getTableMeta().getFullName().toLowerCase(); TableDesc tableDesc = tableDescMap.get(fullName); if (tableDesc != null) { return tableDesc; } tableDesc = createTableDesc(entityMeta); tableDescMap.put(fullName, tableDesc); return tableDesc; }
TableDescFactoryImpl implements TableDescFactory { public TableDesc getTableDesc(EntityMeta entityMeta) { String fullName = entityMeta.getTableMeta().getFullName().toLowerCase(); TableDesc tableDesc = tableDescMap.get(fullName); if (tableDesc != null) { return tableDesc; } tableDesc = createTableDesc(entityMeta); tableDescMap.put(fullName, tableDesc); return tableDesc; } }
TableDescFactoryImpl implements TableDescFactory { public TableDesc getTableDesc(EntityMeta entityMeta) { String fullName = entityMeta.getTableMeta().getFullName().toLowerCase(); TableDesc tableDesc = tableDescMap.get(fullName); if (tableDesc != null) { return tableDesc; } tableDesc = createTableDesc(entityMeta); tableDescMap.put(fullName, tableDesc); return tableDesc; } TableDescFactoryImpl(GenDialect dialect,
            ColumnDescFactory columnDescFactory,
            PrimaryKeyDescFactory primaryKeyDescFactory,
            UniqueKeyDescFactory uniqueKeyDescFactory,
            ForeignKeyDescFactory foreignKeyDescFactory,
            SequenceDescFactory sequenceDescFactory,
            IdTableDescFactory idTableDescFactory); }
TableDescFactoryImpl implements TableDescFactory { public TableDesc getTableDesc(EntityMeta entityMeta) { String fullName = entityMeta.getTableMeta().getFullName().toLowerCase(); TableDesc tableDesc = tableDescMap.get(fullName); if (tableDesc != null) { return tableDesc; } tableDesc = createTableDesc(entityMeta); tableDescMap.put(fullName, tableDesc); return tableDesc; } TableDescFactoryImpl(GenDialect dialect,
            ColumnDescFactory columnDescFactory,
            PrimaryKeyDescFactory primaryKeyDescFactory,
            UniqueKeyDescFactory uniqueKeyDescFactory,
            ForeignKeyDescFactory foreignKeyDescFactory,
            SequenceDescFactory sequenceDescFactory,
            IdTableDescFactory idTableDescFactory); TableDesc getTableDesc(EntityMeta entityMeta); }
TableDescFactoryImpl implements TableDescFactory { public TableDesc getTableDesc(EntityMeta entityMeta) { String fullName = entityMeta.getTableMeta().getFullName().toLowerCase(); TableDesc tableDesc = tableDescMap.get(fullName); if (tableDesc != null) { return tableDesc; } tableDesc = createTableDesc(entityMeta); tableDescMap.put(fullName, tableDesc); return tableDesc; } TableDescFactoryImpl(GenDialect dialect,
            ColumnDescFactory columnDescFactory,
            PrimaryKeyDescFactory primaryKeyDescFactory,
            UniqueKeyDescFactory uniqueKeyDescFactory,
            ForeignKeyDescFactory foreignKeyDescFactory,
            SequenceDescFactory sequenceDescFactory,
            IdTableDescFactory idTableDescFactory); TableDesc getTableDesc(EntityMeta entityMeta);  }