java - How to say to hibernate that I really have transient entity? -
i have entity o
, contains entity c
, c
contains set<a>
. know o
, it's "subentities" transient. when call session.save(o)
hibernate check if c
, every a
entity doesn't exist, because have keys filled in (not generated on database, not generated through custom identifiergenerator
.
is there chance force hibernate not check state of these entities? know if without keys (key columns null) know insert ...
needed. if save entity null
keys, not know how generate values.
if c
holds foreign key o
, o
not mapped cascading save
or updates
c
, hibernate should not check if c
or set<s>
persistent or transient when call session.save(o)
.
Comments
Post a Comment