Skip to main content

Strange persistence behavior

2 replies [Last post]
coboo
Offline
Joined: 2008-07-11

Hello,

I have some strange behavior in my J2EE application. I'm using TopLink with MySQL for persistence.
The problem is that when I run the application and I use MySQL Query Browser I don't see any records in the tables of my entities, all are empty, but when I inspect the tables with MySQL Administrator, it tells me that I do have records in those tables.
If I stop the server the tables are still empty... I think that I'm missing something.

Could someone help me on this?

Thank you,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mitesh Meswani

Are you connecting using same user / schema from all the places?

glassfish@javadesktop.org wrote:
> Hello,
>
> I have some strange behavior in my J2EE application. I'm using TopLink with MySQL for persistence.
> The problem is that when I run the application and I use MySQL Query Browser I don't see any records in the tables of my entities, all are empty, but when I inspect the tables with MySQL Administrator, it tells me that I do have records in those tables.
> If I stop the server the tables are still empty... I think that I'm missing something.
>
> Could someone help me on this?
>
> Thank you,
> [Message sent by forum member 'coboo' (coboo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=290941
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

coboo
Offline
Joined: 2008-07-11

Thank you for your interest.

It seems that I am not yet completely aware on how the detached entities are handled. I did get it working in the end.

My mistake