I have a problem with Hibernate (Annotations). Here are my Entities:
This one works just fine. The other one that does not is here:
Now, the problem: before I persist
ProblemEntity, I call:
After this code, I try to
save my
ProblemEntity and then
flush the
session object (the same session that retrieved
e1). Even though
e1 is not transient and has a valid ID (I checked it), Hibernate tries to insert both
problemEntity and
e1 (in this order). What am I doing wrong?

(both classes are mapped in
hibernate.cfg.xml)
[ May 21, 2008: Message edited by: Marco Tulio Borges ]