Well, then we have insufficient info (Hibernate mapping file would help)
When you say
Quote:
ATTR_ID is preset and it's not in the database
,
Is ATTR_ID a primary key (entity identification), and (if so) are you letting Hibernate generate it OR are you generating it on youir own?
OR is it some foreign key?
OR is the primary key the 'ATTR_VALUE_ID is got from a sequence'?
When you say
Quote:
I really need to find out the value of id
, which of your XXX_ID you refer to?
Normally, you should be able to dump(log) values from your object just before the insert. Hibernate does not invent anything you have not given it, _except_ for the generated keys (which should be null to indicate they need to be generated).