Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dali-dev] Persistence unit is not updated properly after renaming entity

Petya:

Yes, this is a problem. Thanks for notifying us about it.
I have re-created it and am looking into it.
I will keep you posted.

Brian


On 3/7/2013 9:36 AM, Sabeva, Petya wrote:

Hi all,

 

After I rebased my changes today, on top of the master branch, I’ve notice that when I have an entity and rename it, the corresponding persistent type in the persistence unit is not updated properly. What exactly is happening is that the classRef refers to a class with the new name, but if I call classRef.getJavaManagedType() -> it returns the old persistent type (a JPT object with old name). This leads to NPE when I try to manipulate an object, which is returned by persistenceUnit.getPersistentType(newName) and thus it prevents me to rename a persistent type in the JPA diagram editor. I guess this is caused by the huge refactoring from these days… However I am interested in, whether it is working on this issue, or should I open a bug?

 

Regards,

Petya



_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev


Back to the top