Hi

I am using MySQL 5.1.29-rc-community edition with Connector/J 5.1.6 driver
and my AddAndRemoveEntity test fails as getId() is null after the first save
and flush.

I have run P6Spy on the SQL trace and can see the insert statement being
created correctly by Hibernate and my Id strategy of AUTO seems to be using
the auto-incrementing mysql functionality fine.  However, no id is available
in my POJO after flush.

Does anyone know what causes Hibernate to go and 'grab' the id after a flush
and stuff it into my POJO?  Does Hibernate try to do this by default?

Ben
-- 
View this message in context: 
http://www.nabble.com/DaoTest-getId-null-after-flush-tp20338718s2369p20338718.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to