Re: media file crud not working again

2014-01-06 Thread Greg Huber
Glen/Gaurav, I have done a fix where roller manages the relationship of the parent using the entity manager refresh() method on the parent. I was going to use media manager methods to get the children, but it seems so reliant on the entity relationships it would need considerable work to rewrite

Re: media file crud not working again

2014-01-05 Thread Gaurav
I will subscribe myself to that list. I was not aware of it, I was thinking that only commiters have access to it. Thanks, Glen for this info :) On Sunday 05 January 2014 09:14 PM, Glen Mazza wrote: Gaurav, you are subscribed to roller-commits, right? (

Re: media file crud not working again

2013-12-24 Thread Greg Huber
Gaurav, I did start to look at what is required, but then got side tracked onto something else. Hopefully I will be able to get some time later in the week. Unfortunately the relationships are rather embedded in the code, but the plan will be to remove these and replace them with media manager

Re: media file crud not working again

2013-12-20 Thread Gaurav
Hello, I yesterday spent 2-3 hours on this issue ROL-1942 and tested it two three times, as mentioned in the bug we have to restart the server for getting the images, rather if we move any of the images then also that image appear in media view. The search is working fine and displaying the

Re: media file crud not working again

2013-12-20 Thread Greg Huber
Gaurav, Restarting the server flushes the cache inside eclipselink and hence next time the list is retrieved (once server is restarted) it will get a new copy the pojo with an new one to many relationship. In hibernate you can flush the cache with primary key and the pojo object class, but it

Re: media file crud not working again

2013-12-20 Thread Glen Mazza
I don't have any objections, Gaurav's hands will be full enough with ROL-1981 so let him take a break from 1942 and Greg can go in and get done what he needs to get done. (Gaurav this headache has been popping up multiple times in the past several months once we left Apache OpenJPA for

media file crud not working again

2013-12-19 Thread Greg Huber
Glen, It looks like the crud (add/delete) on the media file child association is not working again: MediaFileDirectory directory; .. this.childFiles.addAll(directory.getMediaFiles()); what technique do we now have to use with eclipselink to successfully flush these associations? Cheers Greg.

Re: media file crud not working again

2013-12-19 Thread Glen Mazza
Yes, I'm aware of the headache, it's probably just a few line fix, hopefully it will get fixed as part of ROL-1942. Please be patient (or use Hibernate in the interim.) Glen On 12/19/2013 07:02 AM, Greg Huber wrote: Glen, It looks like the crud (add/delete) on the media file child