2019年

With the latest version of Time Capsule, after capturing a video, tap the music note button to receive a smart recommendation about what song to accompany your Time Capsule. You can swipe left or right to sift through the recommendations.

Already know what song you want? Tap the search bar and search for the song that you want to play in the background of your Time Capsule.
08598-vv9m2i7vq8s.png

At the request of many users, we’ve added a new option to Moments to limit the length of time that your Moments posts remain viewable to others. Previously we offered the option to limit availability of your posts to other to three days and six months. Now, by going to “Me” -> “Settings” -> “Privacy” you can also set your Moments to only be viewable to others for one month. As always, your Moments or Time Capsule posts will always be available to you by going to “Me” -> “My Posts”, even if you limit viewing to others.
79201-xmol7po4nk.png

Are you registering for WeChat for the first time? In that case, we’ve added a new option that will make Facebook even more convenient: When tapping “Sign Up”, you can now select “Sign up via Facebook” to link your WeChat account to your Facebook account.

03041-on2le7muy6.png

Are you already a WeChat user? You can gain access to this easy way to log in by going to “Me” -> “Settings” -> “Account Security” -> “More Settings” and tapping “Facebook”.

To protect your privacy, your Facebook is not viewable to others from your WeChat profile.

Be sure to download the latest version of WeChat now and try out all of these new improvements!

根据子属性对象查询,使用_表达 根据子对象的某个属性进行查询

如 findByUser_AddressZip 是根据 user对象的addressZip属性进行查询

比如 AccountInfo 包含一个 user 的属性,也有一个 userAddress 属性,此时会存在混淆。读者可以明确在属性之间加上 "_" 以显式表达意图,比如 "findByUser_AddressZip()" 或者 "findByUserAddress_Zip()"。

在查询时,通常需要同时根据多个属性进行查询,且查询的条件也格式各样(大于某个值、在某个范围等等),Spring Data JPA 为此提供了一些表达条件查询的关键字,大致如下:

And --- 等价于 SQL 中的 and 关键字,比如 findByUsernameAndPassword(String user, Striang pwd);
Or --- 等价于 SQL 中的 or 关键字,比如 findByUsernameOrAddress(String user, String addr);
Between --- 等价于 SQL 中的 between 关键字,比如 findBySalaryBetween(int max, int min);
LessThan --- 等价于 SQL 中的 "<",比如 findBySalaryLessThan(int max);
GreaterThan --- 等价于 SQL 中的">",比如 findBySalaryGreaterThan(int min);
IsNull --- 等价于 SQL 中的 "is null",比如 findByUsernameIsNull();
IsNotNull --- 等价于 SQL 中的 "is not null",比如 findByUsernameIsNotNull();
NotNull --- 与 IsNotNull 等价;
Like --- 等价于 SQL 中的 "like",比如 findByUsernameLike(String user);
NotLike --- 等价于 SQL 中的 "not like",比如 findByUsernameNotLike(String user);
OrderBy --- 等价于 SQL 中的 "order by",比如 findByUsernameOrderBySalaryAsc(String user);
Not --- 等价于 SQL 中的 "! =",比如 findByUsernameNot(String user);
In --- 等价于 SQL 中的 "in",比如 findByUsernameIn(Collection<String> userList) ,方法的参数可以是 Collection 类型,也可以是数组或者不定长参数;
NotIn --- 等价于 SQL 中的 "not in",比如 findByUsernameNotIn(Collection<String> userList) ,方法的参数可以是 Collection 类型,也可以是数组或者不定长参数;

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。