JpaAnnotationParser { public static RDBTableMetaData parseMetaDataFromEntity(Class entityClass) { Table table = AnnotationUtils.findAnnotation(entityClass, Table.class); if (table == null) { return null; } RDBTableMetaData tableMetaData = new RDBTableMetaData(); tableMetaData.setName(table.name()); parseColumnMeta(null, null, entityClass).forEach(tableMetaData::addColumn); return tableMetaData; }  static RDBTableMetaData parseMetaDataFromEntity(Class entityClass);  }
@Test public void testParse() { RDBTableMetaData metaData = JpaAnnotationParser.parseMetaDataFromEntity(TestEntity.class); Assert.assertNotNull(metaData); Assert.assertEquals(metaData.getColumns().size(), 5); }