This gives me error:
org.springframework.dao.InvalidDataAccessApiUsageException: Entity ‘com.company.workshop.entity.Client-ad7c4b4d-bb4f-eefe-3f90-60fcf07bb220 [managed]’ is a ChangeTracker but has no PropertyChangeListener; nested exception is java.lang.IllegalStateException: Entity ‘com.company.workshop.entity.Client-ad7c4b4d-bb4f-eefe-3f90-60fcf07bb220 [managed]’ is a ChangeTracker but has no PropertyChangeListener
I am working with Eclipse, I updated the eclipse files from CUBA and build gradle multiple times, but still it seems to have this error. I will recheck tomorrow
I did a little bit of debugging, and it seems that when the DataManagerBean is trying to commit the entity through the dataStore it has no MAIN store, so instead it is detached, without propertyChangeListeners.
The cause of such an error is usually that a non-enhanced version of the entity class is used.
When you assemble the project, the enhance task puts enhanced classes into separate directory: modules/global/build/enhanced-classes. At the same time, non-enhanced classes are in modules/global/build/classes.
So in an IDE, this enhanced-classes directory must be earlier in the classpath for running tests. Normally, the task creating IDE project files forms the correct classpath. Please check it.
I checked the directories, they exist, but I found this in the global directory, so I’m not sure if the path is completely correct.
The path seems to have backslash and right before the enhanced-classes directory it has a forward slash.
So maybe this isn’t correct?
Tried to rewrite the path manually with all forward slashes, but not sure how to rebuild :\
P.S. When I update the eclipse files from CUBA, the .classpath file changes itself to the wrong default path, but I guess that will be fixed within the issue.