@Test public void testMake() { DataModular.CheckUnderScoreCase = false; AnnotationEntityMaker maker = new AnnotationEntityMaker(); maker.make(Item.class); }
public <T> EntityMapping<T> make(Class<T> klass) { if (!klass.isAnnotationPresent(Entity.class)) { throw new NoEntityException(klass.getName(), "没有@Entity注解标识 ≡ (^(OO)^) ≡"); } return makeEntity(klass); }
AnnotationEntityMaker { public <T> EntityMapping<T> make(Class<T> klass) { if (!klass.isAnnotationPresent(Entity.class)) { throw new NoEntityException(klass.getName(), "没有@Entity注解标识 ≡ (^(OO)^) ≡"); } return makeEntity(klass); } }
AnnotationEntityMaker { public <T> EntityMapping<T> make(Class<T> klass) { if (!klass.isAnnotationPresent(Entity.class)) { throw new NoEntityException(klass.getName(), "没有@Entity注解标识 ≡ (^(OO)^) ≡"); } return makeEntity(klass); }  }
AnnotationEntityMaker { public <T> EntityMapping<T> make(Class<T> klass) { if (!klass.isAnnotationPresent(Entity.class)) { throw new NoEntityException(klass.getName(), "没有@Entity注解标识 ≡ (^(OO)^) ≡"); } return makeEntity(klass); }  EntityMapping<T> make(Class<T> klass); void guessEntityFieldColumnType(FieldMapping fm); }
AnnotationEntityMaker { public <T> EntityMapping<T> make(Class<T> klass) { if (!klass.isAnnotationPresent(Entity.class)) { throw new NoEntityException(klass.getName(), "没有@Entity注解标识 ≡ (^(OO)^) ≡"); } return makeEntity(klass); }  EntityMapping<T> make(Class<T> klass); void guessEntityFieldColumnType(FieldMapping fm);  }