📄 userdao.java
字号:
package org.hibernate.auction.dao;import org.hibernate.auction.model.User;import org.hibernate.auction.exceptions.InfrastructureException;import java.util.Collection;/** * UserDAO * * @author Jason Carreira <jcarreira@eplus.com> */public interface UserDAO { User getUserById(Long userId, boolean lock) throws InfrastructureException; Collection findAll() throws InfrastructureException; Collection findByExample(User exampleUser) throws InfrastructureException; User findByCredentials(String username, String password); User findByUsername(String username); void makePersistent(User user) throws InfrastructureException; void makeTransient(User user) throws InfrastructureException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -