save « DAO « JPA Q&A





2. How to write an algorithm for a Post Save in Base Dao?    forum.hibernate.org

I need to have a post save operation performed. Why cant i use an interceptor for this purpose? all the methods in Interceptor are before persisting My requirement is written here in this post - http://forum.hibernate.org/viewtopic.php?t=969997 Im thinking that Interceptor need not be the place to do this. Even If I try to do this in my baseDao like this Code: ...

3. proper DAO way to do a 'save if not in the db'?    forum.hibernate.org

public User addUser(final String name, final String uid) { final List result = findByProperty("uid", uid); if (!result.isEmpty()) return (result.get(0)); final User ...