JPA实体类:
@Entity(name="job_configuration")
public class JobConfiguration extends AbstractEntity {
String name;
@Lob
String value;
@ManyToOne
@JoinColumn(name="job_id")
Job job;
}
Lightadmin 管理类:
public class JobConfigurationAdministration
extends AdministrationConfiguration<JobConfiguration> {
}
现在在尝试更新/添加 JobConfiguration 条目时,Lightadmin 会抛出 Spring 异常org.springframework.data.rest.repository.RepositoryNotFoundException
:
RepositoryNotFoundException: No repository found for name job_configuration
列表和视图工作正常。有什么线索吗?
更新:我知道是什么导致了这种行为,下面的声明Job
:
@OneToMany(mappedBy="job", fetch=FetchType.EAGER, cascade=CascadeType.ALL)
Set<JobConfiguration> jobConfigurations;