Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b45f955

Browse files
authored
Second level cache not working for inherited domains (#483)
* caching properties transition from parent to chind https://github.com/grails/grails-data-mapping/issues/1594 * caching properties transition from parent to chind https://github.com/grails/grails-data-mapping/issues/1594
1 parent e9556e2 commit b45f955

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grails-datastore-gorm-hibernate5/src/main/groovy/org/grails/orm/hibernate/cfg/GrailsDomainBinder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,9 @@ else if(tablePerConcreteClass) {
15161516
if (m.getDynamicInsert()) {
15171517
subClass.setDynamicInsert(true);
15181518
}
1519-
1519+
1520+
subClass.setCached(parent.isCached());
1521+
15201522
subClass.setAbstract(sub.isAbstract());
15211523
subClass.setEntityName(fullName);
15221524
subClass.setJpaEntityName(unqualify(fullName));

0 commit comments

Comments
 (0)