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
Derived Properties should be working as advertised using formula specifications in the static mapping block of any Domain class regardless of whether it is a subclass of another Domain class or whether its superclass has set tablePerHierarchy to be false in its static mapping block.
Actual Behaviour
Derived Properties are not working using formula specifications in the static mapping block of a Domain class that is a subclass of another Domain class which has set tablePerHierarchy to be false in its static mapping block. This means two things:
Table Creation of the child Domain class will include the column otherwise meant to not exist because of the existence of its forumla in the static mapping block
Evaluation of this property at runtime looks to the database stored value instead of evaluating the formula specified
Expected Behavior
Derived Properties should be working as advertised using
formula
specifications in thestatic mapping
block of any Domain class regardless of whether it is a subclass of another Domain class or whether its superclass has settablePerHierarchy
to be false in itsstatic mapping
block.Actual Behaviour
Derived Properties are not working using
formula
specifications in thestatic mapping
block of a Domain class that is a subclass of another Domain class which has settablePerHierarchy
to be false in itsstatic mapping
block. This means two things:forumla
in thestatic mapping
blockSteps To Reproduce
See attached project gorm-formula-bug.tar.gz
sudo mysql -u root < src/main/sql/create-database.sql
dbCreate
fromupdate
tocreate-drop
bad_parent
table should have a column called bmi while thegood_parent
one does not.dbCreate
fromcreate-drop
toupdate
Environment Information
Example Application
No response
Version
5.2.5
The text was updated successfully, but these errors were encountered: