You might try an older version of MySQL. I believe someone recently
posted that there are issues with the lastest version. You might
search the mailing list archives to see if you can discover what
version this was with.

http://appfuse.markmail.org

Matt

On Wed, Nov 5, 2008 at 2:47 AM, bendg <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

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

Reply via email to