forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rvice/repository/AdvertiseRepository.java → .../dataservice/repository/AdRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package io.daocloud.dataservice.repository; | ||
|
||
import io.daocloud.dataservice.entity.Advertise; | ||
import io.daocloud.dataservice.entity.Ad; | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.data.repository.query.Param; | ||
|
||
// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository | ||
// CRUD refers Create, Read, Update, Delete | ||
public interface AdvertiseRepository extends CrudRepository<Advertise, Integer> { | ||
Iterable<Advertise> findByAdKey(@Param("adKey") String adKey); | ||
public interface AdRepository extends CrudRepository<Ad, Integer> { | ||
Iterable<Ad> findByAdKey(@Param("adKey") String adKey); | ||
} |