阅读背景:

Spring / Eclipselink / MySQL应用程序数据问题

来源:互联网 

I'm experiencing an odd issue with my application. I have implemented an coupon rating functionality. According to the application, i have to search a coupon, and click on it which will show a description page, and there is a rating option there which is used to do preferred rating for the user. What i'm testing is the following scenario: I search coupon "Test", click on it to and go to the description page, and rate it, and check whether it is reflected in DB. The latest rated value and the total rating will be reflected in the description page. Then i go back to home page again, search the same coupon, click on it to go to its description page and rate again. What happens is, the db gets updated correctly for 4-6 times, after that when i search that coupon and go to the description page, it shows a previous value for rating and total rating which might be the value when it was rated few times ago (This value has been overridden in db). And then if i rate on top of it, the values are not updated in DB. And from there onwards, this functionality breaks. I tried several option, disabled cache, set some hits to eclipselink etc, but nothing solved the issue. Please share your suggestions. Some important parts from my code:I'm experiencing an odd issue with my applicati




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: