就是日志中的sql Hibernate: select user0_.id as id1_25_, user0_.active_time as active_t2_25_, user0_.avatar as avatar3_25_, user0_.birthday as birthday4_25_, user0_.country as country5_25_, user0_.create_time as create_t6_25_, user0_.email as email7_25_, user0_.external_id as external8_25_, user0_.firebase_token as firebase9_25_, user0_.gender as gender10_25_, user0_.ip as ip11_25_, user0_.is_elite as is_elit12_25_, user0_.is_locked as is_lock13_25_, user0_.lang as lang14_25_, user0_.mobile as mobile15_25_, user0_.my_invite_code as my_invi16_25_, user0_.name as name17_25_, user0_.password as passwor18_25_, user0_.pay_password as pay_pas19_25_, user0_.province as provinc20_25_, user0_.region as region21_25_, user0_.salt as salt22_25_, user0_.self_intro as self_in23_25_, user0_.udid as udid24_25_, user0_.update_time as update_25_25_, user0_.user_id as user_id26_25_
from user user0_ cross join third_party_account thirdparty1_
where user0_.user_id=thirdparty1_.user_id and thirdparty1_.source=? and thirdparty1_.third_party_id=?
用到了cross join 需要把這里的cross改成inner 但是在代碼中的UserRepository下面 這個方法的上面并沒有寫sql,這種應該怎么去修改
uj5u.com熱心網友回復:
public interface UserRepository extends JpaRepository<User, BigInteger> {User findByUserId(String userId);
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/99276.html
標籤:Web 開發
上一篇:AUTOJS小視頻的福音
