package ameba.db.annotation;

/**
 * Created by sulijuan on 15/4/7.
 */
public @interface DataSource {
}

@@ -27,49 +27,222 @@
 n;%0A%0A
-/**%0A * Created by sulijuan on 15/4/7.%0A */
+import javax.validation.constraints.NotNull;%0Aimport java.lang.annotation.*;%0A%0A/**%0A * change default data source name%0A *%0A * @author icode%0A */%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(%7BElementType.TYPE%7D)%0A@Inherited
 %0Apub
@@ -273,6 +273,34 @@
 e %7B%0A
+    @NotNull String value();%0A
 %7D
-%0A

添加model上标记@DataSource注解设置默认数据源