title: Hibernate evict vs flush with object which has no id
body: <p>Am trying to understand what happens if we create new user instance of entity User which doesnt have an id is used in hibernate session.flush(user) or session.evict(user), considering user instance has firstname, lastname etc values</p>