-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring model packages not updating DatabaseTableConfig #64
Comments
Modify the config file or the table itself? The last paragraph is confusing. If you want to know if changing a model class can auto-update the table, no. Since you earlier focus on changing packages, I don't think you mean modifying the actual table, though. |
It is keeping a reference to where it thinks the class should be located and when I move the class it is not being updated. How can I tell it where to look for my model class once it is moved? |
@josephmbeveridge Did you resolve this issue? I have exactly the same problem. |
No I ended up having to abandon my plans to refactor packages |
Did you try regenerating the database config file? The config file certainly holds the name of the class in it but if you refactor the class you should just regenerate the config file. |
@j256 Thanks for advice! UPDATE------------------------- |
@j256 In my original post I asked how one would regenerate the file but I never got an answer. |
Here's the documentation about how to run and regenerate the database table config file. |
Hey,
I'm in the process of refactoring our model class package hierarchy and running into issues when upgrading to this new refactored version. It appears that
DatabaseTableConfig
stores the expected path to a given class, to be used when deserializing from the db. However, it doesn't appear to be updated after upgrades, at least not in my case.My specific case is moving a class from
com.company.services.path.Class
tocom.company.sdk.services.path.Class
Is there a way to trigger a recreation of this table? Ideally I would like to avoid having to manually modify the table. I haven't been able to find any good sources on how to do this.
The text was updated successfully, but these errors were encountered: