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
trying to work around #9678 by adding Long id and Integer version to an abstract base class in src/main/groovy, I got an exception because of a wrong query was generated (table name is the mapped class name of the abstract class).
seems the cause is that the abstract class is somehow treated like a concrete (domain) class in terms of table-mapping if it contains id and version properties.
was not sure if this is a core or a gdm issue. created it here.
referenced sample app shows described behavior. dbconsole shows table name ABSTRACT_BASE_CLASS, if id/version are commented out in AbstractBaseClass, table name is CONCRETE_DOMAIN.
The text was updated successfully, but these errors were encountered:
zyro23
added a commit
to zyro23/grails-core-9692
that referenced
this issue
Feb 14, 2016
trying to work around #9678 by adding
Long id
andInteger version
to an abstract base class insrc/main/groovy
, I got an exception because of a wrong query was generated (table name is the mapped class name of the abstract class).seems the cause is that the abstract class is somehow treated like a concrete (domain) class in terms of table-mapping if it contains id and version properties.
was not sure if this is a core or a gdm issue. created it here.
referenced sample app shows described behavior. dbconsole shows table name
ABSTRACT_BASE_CLASS
, ifid
/version
are commented out inAbstractBaseClass
, table name isCONCRETE_DOMAIN
.The text was updated successfully, but these errors were encountered: