2013-03-10 5 views
0

내가 사용을 봄 루를 정의해야합니다 + 봄 데이터 + QueryDSL 내가이 다음의 클래스/인터페이스 :암시 적 슈퍼 생성자 QueryDslRepositorySupport()는 기본 생성자에 대해 정의되지 않습니다. 명시 적 생성자

public interface FamilyAdvertisementRepositoryCustom { 
} 

@RooJpaRepository(domainType = FamilyAdvertisement.class) 
public interface FamilyAdvertisementRepository extends FamilyAdvertisementRepositoryCustom { 
} 

public class FamilyAdvertisementRepositoryImpl extends QueryDslRepositorySupport implements FamilyAdvertisementRepositoryCustom { 
    //NO CONSTRUCTOR 
} 

다음의 모든 패키지 : 다음으로 com.bignibou.repository;

구성 :

<repositories base-package="com.bignibou.repository" /> 

그러나 자신의 오류 :

[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project bignibou: Compiler errors : [ERROR] error at public class FamilyAdvertisementRepositoryImpl extends QueryDslRepositorySupport implements FamilyAdvertisementRepositoryCustom { [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] /home/julien/Documents/donnees/projets/site-garde-enfants/java/bignibou/src/main/java/com/bignibou/repository/FamilyAdvertisementRepositoryImpl.java:5:0::0 Implicit super constructor QueryDslRepositorySupport() is undefined for default constructor. Must define an explicit constructor 

QueryDslRepositorySupport이 클래스가 더 이상이 경우 예전 반면에 기본 생성자가 보인다. 왜 그거야 ??

나는 무엇이 잘못 되었습니까?

답변

3

BuildergetBuilder()에서 단일 도메인 유형으로 반환되도록 변경되었습니다. 인수없이 생성자를 만들고 저장소를 구현하는 도메인 유형의 수퍼 클래스 생성자를 호출하기 만하면됩니다.

+0

감사합니다. Oliver. 끝난. 나는 이것이 스프링 데이터 jpa의 현재 버전으로 업그레이드하는 기존 애플리케이션을 깨뜨릴 것이라고 염려했다. ​​... – balteo

+0

그렇기 때문에 우리는 메이저 버전 범프 (1.2 IIRC까지)로 소개했다. –