Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
NASTY BUG ALERT: .... partial object losing changes with setter on non-loaded property
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rob Bygrave  
View profile  
 More options Mar 24 2010, 8:01 pm
From: Rob Bygrave <robin.bygr...@gmail.com>
Date: Thu, 25 Mar 2010 13:01:48 +1300
Local: Wed, Mar 24 2010 8:01 pm
Subject: NASTY BUG ALERT: .... partial object losing changes with setter on non-loaded property

This is bad news I'm afraid.

Eddie has found a bug with a scenario that we didn't have a unit test for.

Effectively you can lose some of your changes ...

1. - partially load a bean
2. - modify the loaded properties (you will lose these changes)
3. - modify a property that isn't loaded
          - this invokes lazy loading for the extra properties
          - BUG: this resets the loaded state of the bean so you lose the
changes in step 2

4. Now you have your bean ... but the only modified property is the Step 3
property

Unfortunately we didn't have a test case for this scenario which is my
oversight.  The good news is I'm off contract (working from home) so I have
already reproduced it and got a fix in HEAD.

I'll be deploying a v2.5.1 release ASAP.

I have not confirmed which versions this effects yet but I suspect 2.5.0,
2.4.0 and 2.3.0. If you can't upgrade to v2.5.1 and need a fix backported
let me know. I'll update this post as I make further progress.

Again, apologies for this awful bug.

- Rob.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Bygrave  
View profile  
 More options Mar 24 2010, 9:32 pm
From: Rob Bygrave <robin.bygr...@gmail.com>
Date: Wed, 24 Mar 2010 18:32:26 -0700 (PDT)
Local: Wed, Mar 24 2010 9:32 pm
Subject: Re: NASTY BUG ALERT: .... partial object losing changes with setter on non-loaded property

I have deployed v2.5.1 which contains the fix to the maven repository.

http://www.avaje.org/archiva/repository/internal/org/avaje/ebean/2.5.1/

On Mar 25, 1:01 pm, Rob Bygrave <robin.bygr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »