File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/example/log4u
domain/subscription/repository Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727 "com.example.log4u.domain.media" ,
2828 "com.example.log4u.domain.reports" ,
2929 "com.example.log4u.domain.supports" ,
30- "com.example.log4u.domain.user"
30+ "com.example.log4u.domain.user" ,
31+ "com.example.log4u.domain.subscription"
3132 },
3233 entityManagerFactoryRef = "mysqlEntityManagerFactory" ,
3334 transactionManagerRef = "mysqlTransactionManager"
@@ -55,7 +56,8 @@ public LocalContainerEntityManagerFactoryBean mysqlEntityManagerFactory() {
5556 "com.example.log4u.domain.media" ,
5657 "com.example.log4u.domain.reports" ,
5758 "com.example.log4u.domain.supports" ,
58- "com.example.log4u.domain.user"
59+ "com.example.log4u.domain.user" ,
60+ "com.example.log4u.domain.subscription"
5961 );
6062 HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter ();
6163 vendorAdapter .setShowSql (true );
Original file line number Diff line number Diff line change 44import java .util .Optional ;
55
66import org .springframework .data .jpa .repository .JpaRepository ;
7+ import org .springframework .stereotype .Repository ;
78
89import com .example .log4u .domain .subscription .PaymentStatus ;
910import com .example .log4u .domain .subscription .entity .Subscription ;
1011
12+ @ Repository
1113public interface SubscriptionRepository extends JpaRepository <Subscription , Long > {
1214 Optional <Subscription > findByUserIdAndCreatedAtBeforeAndPaymentStatusOrderByCreatedAtDesc (Long userId ,
1315 LocalDateTime now ,
You can’t perform that action at this time.
0 commit comments