-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Spring PetClinic with Hibernate JPA inserts double rows
PostPosted: Fri Mar 20, 2009 4:54 pm 
Regular
Regular

Joined: Mon Aug 07, 2006 6:22 pm
Posts: 67
I built the Spring 2.5.6 PetClinic application pretty much out of the box, configured with Hibernate's JPA implementation, binding to MySQL.

When I execute any operation in the UI that inserts a new object, it always creates two duplicate objects, as if I created it twice. This happens for all the domain objects. When the page redisplays, it shows two copies of each object that I created (not the existing ones).

I then reconfigured the application to just use plain Hibernate, not JPA, and it does not display the symptom.

I set a breakpoint on the "Owner.addPet()" method, and it only hits it once.

What else can I do to narrow this down, if no one has a quick answer for me?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.