You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
We need more precise error logging for database entity decorators.
Such as incorrect entity typing should be more informative.
Right now we may get error like: ERROR: TypeError: Could not create entity correctly: [object Object]
The text was updated successfully, but these errors were encountered:
In reality this error happens in EntityUtils.toEntity() because the entity object created was no extended from Entity base class. E.g. the isEntity() check fails.
This utility uses the createEntity() function from the entity metadata to prepare the Entity object. This function is initialized by the use of @Table annotation.
So in order for this error to happen, you would have to have your Entity class not extended from the same Entity class our data framework is using.
We need more precise error logging for database entity decorators.
Such as incorrect entity typing should be more informative.
Right now we may get error like:
ERROR: TypeError: Could not create entity correctly: [object Object]
The text was updated successfully, but these errors were encountered: