cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Inheritance of @UiDescriptor does not make sense #2904

Open andreybpanfilov opened 4 years ago

andreybpanfilov commented 4 years ago

Environment

Description of the bug or enhancement

Scenario:

package domain1

@UiController("domain1_Entity")
@UiDescriptor("domain1-entity.xml")
class EntityController {

}
package domain2

@UiController("domain2_Entity")
// here we do not override UiDescriptor annotation because 
// we expect it should be inherited from domain1.EntityController
class EntityControllerExt extends domain2.EntityController {

}
Caused by: com.haulmont.cuba.core.global.DevelopmentException: Template is not found /domain2/domain1-entity.xml
alexbudarov commented 4 years ago

Note: CUBA Studio assumes that no more than one controller is associated with screen descriptor. So you may have problems with screen designer functioning for such shared xml descriptors.