Open josephmbeveridge opened 8 years ago
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! How exactly i can regenerate this file? I try to find something like config file through project files, but there's nothing like it
UPDATE------------------------- In our project we use default implementation of ORMLite configuration. So, obviously, there's no such file. Is there's the way to solve this issue? Or ORMLite mean "no package-level refactoring at all"? :-(
@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. http://ormlite.com/docs/table-config
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.