Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在为我的 Spring Roo 应用程序创建我的域对象。我有两个相似的域对象,我想从基础对象继承。
~.domain.LayerBase ~.domain.ColorLayer extends ~.domain.LayerBase ~.domain.ImageLayer extends ~.domain.LayerBase
有没有一种简单的方法可以在控制台中执行此操作,还是我必须手动执行此操作?
我认为您需要的是(来自Roo 参考命令索引)
entity --class FirstColorLayer --extends ~.domain.FirstLayerBase ...
是这样吗?