I've got the problem that my entity is inserted into the db without any "flush" being called, Maybe someone has an idea under which circumstances a session.save immediately triggers db insert?
I think the only to interesting parts of my object which I would like to save (but not persist(!)) is
@javax.persistence.Id
@javax.persistence.GeneratedValue(strategy = GenerationType.IDENTITY)
@javax.persistence.Column(name = "EM_id")
private Long id;
@javax.persistence.Version
@javax.persistence.Column(name = "version")
private int version;