package com.totsp.example.jpa.dao; import java.util.List; import com.totsp.example.jpa.exception.DataException; import com.totsp.example.jpa.model.User; public interface IUserDao { public User get(long id) throws DataException; public User get(String name) throws DataException; public List getAll() throws DataException; public void save(User user) throws DataException; public User update(User user) throws DataException; public void remove(User user) throws DataException; }