Skip to content

Commit acb4b2f

Browse files
committed
发布 v2.7.0 正式版
1 parent 56a2d2e commit acb4b2f

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div align="center"><img style="display: block; margin: 0 auto;" src="https://blinkfox.github.io/fenix/assets/images/logo.png" alt="fenix logo" /></div>
44

5-
[![Build Status](https://secure.travis-ci.org/blinkfox/fenix.svg)](https://travis-ci.org/blinkfox/fenix) [![Javadocs](http://www.javadoc.io/badge/com.blinkfox/fenix.svg)](http://www.javadoc.io/doc/com.blinkfox/fenix) [![GitHub license](https://img.shields.io/github/license/blinkfox/fenix.svg)](https://github.com/blinkfox/fenix/blob/develop/LICENSE) [![fenix](https://img.shields.io/badge/fenix-v2.6.1-blue)](https://search.maven.org/artifact/com.blinkfox/fenix/2.6.1/jar) [![fenix starter](https://img.shields.io/badge/fenix%20spring%20boot%20starter-v2.6.1-blue)](https://search.maven.org/artifact/com.blinkfox/fenix-spring-boot-starter/2.6.1/jar) [![codecov](https://codecov.io/gh/blinkfox/fenix/branch/develop/graph/badge.svg)](https://codecov.io/gh/blinkfox/fenix)
5+
[![Build Status](https://secure.travis-ci.org/blinkfox/fenix.svg)](https://travis-ci.org/blinkfox/fenix) [![Javadocs](http://www.javadoc.io/badge/com.blinkfox/fenix.svg)](http://www.javadoc.io/doc/com.blinkfox/fenix) [![GitHub license](https://img.shields.io/github/license/blinkfox/fenix.svg)](https://github.com/blinkfox/fenix/blob/develop/LICENSE) [![fenix](https://img.shields.io/badge/fenix-v2.7.0-blue)](https://search.maven.org/artifact/com.blinkfox/fenix/2.7.0/jar) [![fenix starter](https://img.shields.io/badge/fenix%20spring%20boot%20starter-v2.7.0-blue)](https://search.maven.org/artifact/com.blinkfox/fenix-spring-boot-starter/2.7.0/jar) [![codecov](https://codecov.io/gh/blinkfox/fenix/branch/develop/graph/badge.svg)](https://codecov.io/gh/blinkfox/fenix)
66

77
> [🔥 Fenix](https://github.com/blinkfox/fenix)(菲尼克斯)是一个为了解决复杂动态 SQL (`JPQL`) 而生的 `Spring Data JPA` 扩展库,能辅助开发者更方便快捷的书写复杂、动态且易于维护的 SQL,支持 ActiveRecord 模式和多种查询方式。
88
@@ -40,14 +40,14 @@
4040
<dependency>
4141
<groupId>com.blinkfox</groupId>
4242
<artifactId>fenix-spring-boot-starter</artifactId>
43-
<version>2.6.1</version>
43+
<version>2.7.0</version>
4444
</dependency>
4545
```
4646

4747
### 🌵 2. Gradle
4848

4949
```bash
50-
compile 'com.blinkfox:fenix-spring-boot-starter:2.6.1'
50+
compile 'com.blinkfox:fenix-spring-boot-starter:2.7.0'
5151
```
5252

5353
### 🏕️ 3. 激活 Fenix (@EnableFenix)

docs/quick-install.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
<dependency>
1717
<groupId>com.blinkfox</groupId>
1818
<artifactId>fenix-spring-boot-starter</artifactId>
19-
<version>2.6.1</version>
19+
<version>2.7.0</version>
2020
</dependency>
2121
```
2222

2323
### 🌵 2. Gradle :id=spring-boot-gradle
2424

2525
```bash
26-
compile 'com.blinkfox:fenix-spring-boot-starter:2.6.1'
26+
compile 'com.blinkfox:fenix-spring-boot-starter:2.7.0'
2727
```
2828

2929
### 🏕️ 3. 激活 Fenix (@EnableFenix) :id=enable-fenix
@@ -100,14 +100,14 @@ fenix:
100100
<dependency>
101101
<groupId>com.blinkfox</groupId>
102102
<artifactId>fenix</artifactId>
103-
<version>2.6.1</version>
103+
<version>2.7.0</version>
104104
</dependency>
105105
```
106106

107107
### 🌻 2. Gradle :id=project-gradle
108108

109109
```bash
110-
compile 'com.blinkfox:fenix:2.6.1'
110+
compile 'com.blinkfox:fenix:2.7.0'
111111
```
112112

113113
### 🏔️ 3. 激活 Fenix :id=project-enable-fenix

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.blinkfox</groupId>
77
<artifactId>fenix</artifactId>
8-
<version>2.7.0-SNAPSHOT</version>
8+
<version>2.7.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>fenix</name>

src/main/java/com/blinkfox/fenix/ar/repo/JpaModel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ default void flush() {
4545
/**
4646
* 保存实体对象中的数据,并立即刷新到数据库中.
4747
*
48+
* @param <S> 本实体类或其子类
4849
* @return 保存后的实体对象
4950
*/
5051
@Transactional

src/main/java/com/blinkfox/fenix/jpa/FenixResultTransformer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
*
2222
* @author blinkfox on 2019-10-08.
2323
* @author blinkfox on 2022-03-25 (v2.7.0) 做了代码重构,公共代码集成自 {@link AbstractResultTransformer}
24-
* @see com.blinkfox.fenix.jpa.transformer.PrefixUnderscoreTransformer
2524
* @see com.blinkfox.fenix.jpa.transformer.UnderscoreTransformer
25+
* @see com.blinkfox.fenix.jpa.transformer.PrefixUnderscoreTransformer
26+
* @see com.blinkfox.fenix.jpa.transformer.ColumnAnnotationTransformer
2627
* @since v1.1.0
2728
*/
2829
public class FenixResultTransformer extends AbstractResultTransformer {
@@ -55,7 +56,7 @@ public class FenixResultTransformer extends AbstractResultTransformer {
5556
/**
5657
* 做一些初始化操作.
5758
*
58-
* <p>本方法为了保持向以前的版本兼容,重写了父类中的 {@link super#init()} 方法,本方法中的字段都是小写的,不区分大小写.</p>
59+
* <p>本方法的功能能向兼容的以前版本,重写了父类中的 {@code init()} 方法,结果类中属性的字段都是小写的,不区分大小写.</p>
5960
*/
6061
@Override
6162
public void init() {

src/main/java/com/blinkfox/fenix/jpa/QueryFenix.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
* <p>该属性和 Fenix XML 文件中的 {@code resultType} 同义,后续推荐使用本属性来设置结果类型的 class,
8484
* 这样能更好的利用 Java 类的静态编译检查和代码重构后发现一些类路径修改所造成的隐患问题.</p>
8585
*
86+
* @return 结果类型的 class,默认为 {@link Void} 的 class
8687
* @since 2.7.0
8788
*/
8889
Class<?> resultType() default Void.class;
@@ -92,6 +93,7 @@
9293
*
9394
* <p>为了保持向前兼容,默认的转换器仍然使用的是之前版本使用的 {@link FenixResultTransformer} 类的 Class.</p>
9495
*
96+
* @return Fenix 中约定的 {@link AbstractResultTransformer} 的子类
9597
* @see com.blinkfox.fenix.jpa.transformer.UnderscoreTransformer
9698
* @see com.blinkfox.fenix.jpa.transformer.PrefixUnderscoreTransformer
9799
* @see com.blinkfox.fenix.jpa.transformer.ColumnAnnotationTransformer

src/main/java/com/blinkfox/fenix/jpa/transformer/ColumnAnnotationTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void init() {
5353
}
5454

5555
/**
56-
* 用来将各个查询结果列的别名和值注入到 {@link super#resultClass} 的结果对象中的方法.
56+
* 这是用来将各个查询结果列的别名和值注入到父类的 {@code resultClass} 结果对象中的方法.
5757
*
5858
* @param tuple 值数组
5959
* @param aliases 别名数组

src/main/java/com/blinkfox/fenix/jpa/transformer/UnderscoreTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void init() {
4545
}
4646

4747
/**
48-
* 用来将各个查询结果列的别名和值注入到 {@link super#resultClass} 的结果对象中的方法.
48+
* 这是用来将各个查询结果列的别名和值注入到父类 {@code resultClass} 的结果对象中的方法.
4949
*
5050
* @param tuple 值数组
5151
* @param aliases 别名数组

0 commit comments

Comments
 (0)