
Originally Posted by
Oliver Gierke
Is there a chance you can show us the two interfaces that you've defined?
Of course. So, in the first bundle I have this interface.
Code:
public interface AmbulanceVehicleRepository extends JpaRepository<AmbulanceVehicle, Long> {
/**
* @param String label
* @return AmbulanceVehicle the labelled ambulance in storage
*/
AmbulanceVehicle findByLabel(String label);
}
AmbulanceVehicle is my jpa2 domain class, with a Long id field.
Then, in the second bundle, I'm just extending my AmbulanceVehicleRepository interface. So:
Code:
public interface SpringDataVehicleAdminRepository extends AmbulanceVehicleRepository {
}
And then I have the error. I (trying to) create the bean using spring-data "repositories" element in the context and autowiring it in the code for later usage.
regards,
Paulo