UserEntityRepository
public interface UserEntityRepository extends JpaRepository<UserEntity, String>
源码Source
io/agentscope/builder/web/persistence/jpa/UserEntityRepository.java:22–27定义用户 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<UserEntity, String>。核心成员包括 findByUsernameIgnoreCase、existsByUsernameIgnoreCase。
Spring Data repository for UserEntity.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Optional<UserEntity> findByUsernameIgnoreCase(String username) | 查找 `findByUsernameIgnoreCase`。 Finds the by username ignore case. |
public boolean existsByUsernameIgnoreCase(String username) | 设置该参数。 Performs the exists by username ignore case operation. |
方法详情Method Detail
findByUsernameIgnoreCase
public Optional<UserEntity> findByUsernameIgnoreCase(String username)
查找 findByUsernameIgnoreCase。
Finds the by username ignore case.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
username | String | username(类型 `String`)。The username. |
Optional<UserEntity>返回可选。Returns optional.
源码Source
io/agentscope/builder/web/persistence/jpa/UserEntityRepository.java:24existsByUsernameIgnoreCase
public boolean existsByUsernameIgnoreCase(String username)
设置该参数。
Performs the exists by username ignore case operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
username | String | username(类型 `String`)。The username. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/builder/web/persistence/jpa/UserEntityRepository.java:26