Skip to main content

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

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


Back to the top