1

在我的service.xml我定义了两个实体AssignmentSubmission,后者包含<column name="assignmentId" type="long"></column>.

运行 Gradle's 后buildService,我得到以下代码AssignmentLocalService

public Assignment addAssignment(Assignment assignment);

[...]

@Indexable(type = IndexableType.REINDEX)
    public Assignment addAssignment(Assignment assignment);

Eclipse 将此标记为错误,并且 Gradle 的jar任务失败并显示:

error: method addAssignment(Assignment) is already defined in interface AssignmentLocalService

为什么 Service Builder 这样做?
如何防止它创建重复的方法,或者如果 Service Builder 确实在做正确的事情,如何使编译工作?

4

0 回答 0