• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What does hibernate think is "dirty" here?

 
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't select a simple list of objects w/o an update happening for each record in the List...and I can't put my finger on *why* this would be happening.

...the Order mapping:



When I run through the records like so, the updates happen.



Here's the method being called:



I get these queries:



Every call thereafter I get only the query I would have expected...even if I restart tomcat:



However, if I reload the data from production to my dev box and start fresh...the updates happen again!

Also, this all happens within one session and one transaction...nothing gets disconnected.

There's nothing wrong w/ the data so far as I can tell and I'm just stumped...any ideas?

Thanks!
 
Vinnie Jenks
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas? Anyone? I'm seriously crunched for time or I'd just be more patient.

I RTFM, I followed instructions, but this one object is producing unexpected behavior.

I'm pressed for time and Hibernate has always worked good for me in the past...but I have no choice but to rip it out of my DAO and start using something else or just manually mapping the classes to data...which sucks...but I have about 30 min. to decide!

Any clues? Shots in the dark are also welcome!

Thanks!
 
Vinnie Jenks
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I FIGURED IT OUT!!

Stupid Netbeans!

I'm using a nightly release of netbeans 5.0 (yeah, go ahead and kick me now)...which has been EXCELLENT up until this little BUG!

Anyhow...the Address1 and Address2 fields were being set to NULL, that's what all the updates were about.

THAT was happening because the parameters were misspelled for those two setters...but either Netbeans and/or the Java compiler didn't catch it and allowed the classes to build that way...so...once I fixed the spelling everything fell into place.

AHHH!! That kept me busy for almost two days!!!
reply
    Bookmark Topic Watch Topic
  • New Topic