diff --git a/pom.xml b/pom.xml index b8633a73..01d7cdd5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.xream.sqli sqli-parent pom - 2.1.4 + 2.1.5 sqli-parent http://sqli.xream.io @@ -23,7 +23,8 @@ 17 17 true - 2.1.4 + 1.0.0 + 2.1.5 2.13.4.2 1.7.30 @@ -32,7 +33,7 @@ scm:git:https://github.com/x-ream/sqli scm:git:https://github.com/x-ream/sqli scm:git:https://github.com/x-ream/sqli - 2.1.4 + 2.1.5 @@ -66,6 +67,12 @@ + + io.xream.sqli + sqli-annotation + ${sqli.annotation.version} + + com.fasterxml.jackson.core jackson-databind diff --git a/sqli-builder/pom.xml b/sqli-builder/pom.xml index 69f92f83..69a8954f 100644 --- a/sqli-builder/pom.xml +++ b/sqli-builder/pom.xml @@ -5,7 +5,7 @@ sqli-parent io.xream.sqli - 2.1.4 + 2.1.5 4.0.0 diff --git a/sqli-builder/src/main/java/io/xream/sqli/annotation/GenSql.java b/sqli-builder/src/main/java/io/xream/sqli/annotation/GenSql.java deleted file mode 100644 index f5249e8e..00000000 --- a/sqli-builder/src/main/java/io/xream/sqli/annotation/GenSql.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2020 io.xream.sqli - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.xream.sqli.annotation; - - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * @author Sim - */ -@Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.TYPE}) -public @interface GenSql { -} diff --git a/sqli-builder/src/main/java/io/xream/sqli/annotation/X.java b/sqli-builder/src/main/java/io/xream/sqli/annotation/X.java deleted file mode 100644 index 866d0f09..00000000 --- a/sqli-builder/src/main/java/io/xream/sqli/annotation/X.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2020 io.xream.sqli - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.xream.sqli.annotation; - - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * @author Sim - */ -@Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) -public @interface X { - - /** - * only effect on getter
- */ - int length() default 20; - - - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.FIELD, ElementType.TYPE}) - @interface Mapping { - String value() default ""; - } - - - /** - * not cached two - */ - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.TYPE}) - @interface NoCache { - } - - /** - * only effect on property
- * will not save the property in relation DB, like MySql
- * but will save the property int cache, or K-V DB,like mc or redis
- * instead of "transient", while transport the stream of object - */ - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.FIELD}) - @interface Ignore { - } - - - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.FIELD}) - @interface Key { - } - - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.FIELD}) - @interface Tag { - } - - @Retention(RetentionPolicy.RUNTIME) - @Target({ElementType.FIELD}) - @interface TagTarget { - } - -} diff --git a/sqli-core/pom.xml b/sqli-core/pom.xml index f87a6120..e9e34845 100644 --- a/sqli-core/pom.xml +++ b/sqli-core/pom.xml @@ -5,7 +5,7 @@ sqli-parent io.xream.sqli - 2.1.4 + 2.1.5 4.0.0 diff --git a/sqli-dialect/pom.xml b/sqli-dialect/pom.xml index 44092d08..d4e90793 100644 --- a/sqli-dialect/pom.xml +++ b/sqli-dialect/pom.xml @@ -5,7 +5,7 @@ sqli-parent io.xream.sqli - 2.1.4 + 2.1.5 4.0.0 sqli-dialect diff --git a/sqli-repo/pom.xml b/sqli-repo/pom.xml index 950d29c3..9ad28792 100644 --- a/sqli-repo/pom.xml +++ b/sqli-repo/pom.xml @@ -5,7 +5,7 @@ sqli-parent io.xream.sqli - 2.1.4 + 2.1.5 4.0.0