Skip to content

Commit

Permalink
SCRUM-49 feat: QueryDslConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
yeopyeop-82 committed Aug 12, 2024
1 parent 7030531 commit dc526ed
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.kakaoteck.golagola.config.util;

import com.querydsl.jpa.impl.JPAQueryFactory;
import jakarta.persistence.EntityManager;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@RequiredArgsConstructor
public class QueryDslConfig {

private final EntityManager em;

@Bean
public JPAQueryFactory jpaQueryFactory() {
return new JPAQueryFactory(em);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public class Seller extends BaseEntity implements UserDetails {
@Column(nullable = false)
private String phoneNum;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
private Role role;

@Enumerated(EnumType.STRING)
@Column(nullable = false)
private String realName;

Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ spring.datasource.password=8253
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect

spring.jwt.secret=YGiByhzi3WNNsx420kl3yrwejJmV8htQ
spring.jwt.token.access-expiration-time=86400000
spring.jwt.token.refresh-expiration-time=86400000

0 comments on commit dc526ed

Please sign in to comment.