-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from 28th-meetup/eckrin/fixup
feat: 이벤트 관련 기능 추가
- Loading branch information
Showing
38 changed files
with
873 additions
and
18 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
Binary file not shown.
64 changes: 64 additions & 0 deletions
64
src/main/generated/com/kusitms/jipbap/event/aop/QEventLog.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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package com.kusitms.jipbap.event.aop; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
import com.querydsl.core.types.dsl.PathInits; | ||
|
||
|
||
/** | ||
* QEventLog is a Querydsl query type for EventLog | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QEventLog extends EntityPathBase<EventLog> { | ||
|
||
private static final long serialVersionUID = 1535997623L; | ||
|
||
private static final PathInits INITS = PathInits.DIRECT2; | ||
|
||
public static final QEventLog eventLog = new QEventLog("eventLog"); | ||
|
||
public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this); | ||
|
||
public final EnumPath<Action> action = createEnum("action", Action.class); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> createdAt = _super.createdAt; | ||
|
||
public final com.kusitms.jipbap.event.model.entity.QEvent event; | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> updatedAt = _super.updatedAt; | ||
|
||
public final com.kusitms.jipbap.user.model.entity.QUser user; | ||
|
||
public QEventLog(String variable) { | ||
this(EventLog.class, forVariable(variable), INITS); | ||
} | ||
|
||
public QEventLog(Path<? extends EventLog> path) { | ||
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); | ||
} | ||
|
||
public QEventLog(PathMetadata metadata) { | ||
this(metadata, PathInits.getFor(metadata, INITS)); | ||
} | ||
|
||
public QEventLog(PathMetadata metadata, PathInits inits) { | ||
this(EventLog.class, metadata, inits); | ||
} | ||
|
||
public QEventLog(Class<? extends EventLog> type, PathMetadata metadata, PathInits inits) { | ||
super(type, metadata, inits); | ||
this.event = inits.isInitialized("event") ? new com.kusitms.jipbap.event.model.entity.QEvent(forProperty("event"), inits.get("event")) : null; | ||
this.user = inits.isInitialized("user") ? new com.kusitms.jipbap.user.model.entity.QUser(forProperty("user"), inits.get("user")) : null; | ||
} | ||
|
||
} | ||
|
65 changes: 65 additions & 0 deletions
65
src/main/generated/com/kusitms/jipbap/event/model/entity/QEvent.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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.kusitms.jipbap.event.model.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
import com.querydsl.core.types.dsl.PathInits; | ||
|
||
|
||
/** | ||
* QEvent is a Querydsl query type for Event | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QEvent extends EntityPathBase<Event> { | ||
|
||
private static final long serialVersionUID = -778155915L; | ||
|
||
private static final PathInits INITS = PathInits.DIRECT2; | ||
|
||
public static final QEvent event = new QEvent("event"); | ||
|
||
public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this); | ||
|
||
public final com.kusitms.jipbap.user.model.entity.QUser admin; | ||
|
||
public final NumberPath<Long> amount = createNumber("amount", Long.class); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> createdAt = _super.createdAt; | ||
|
||
public final StringPath description = createString("description"); | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
public final StringPath title = createString("title"); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> updatedAt = _super.updatedAt; | ||
|
||
public QEvent(String variable) { | ||
this(Event.class, forVariable(variable), INITS); | ||
} | ||
|
||
public QEvent(Path<? extends Event> path) { | ||
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); | ||
} | ||
|
||
public QEvent(PathMetadata metadata) { | ||
this(metadata, PathInits.getFor(metadata, INITS)); | ||
} | ||
|
||
public QEvent(PathMetadata metadata, PathInits inits) { | ||
this(Event.class, metadata, inits); | ||
} | ||
|
||
public QEvent(Class<? extends Event> type, PathMetadata metadata, PathInits inits) { | ||
super(type, metadata, inits); | ||
this.admin = inits.isInitialized("admin") ? new com.kusitms.jipbap.user.model.entity.QUser(forProperty("admin"), inits.get("admin")) : null; | ||
} | ||
|
||
} | ||
|
62 changes: 62 additions & 0 deletions
62
src/main/generated/com/kusitms/jipbap/event/model/entity/QEventUser.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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.kusitms.jipbap.event.model.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
import com.querydsl.core.types.dsl.PathInits; | ||
|
||
|
||
/** | ||
* QEventUser is a Querydsl query type for EventUser | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QEventUser extends EntityPathBase<EventUser> { | ||
|
||
private static final long serialVersionUID = -808229408L; | ||
|
||
private static final PathInits INITS = PathInits.DIRECT2; | ||
|
||
public static final QEventUser eventUser = new QEventUser("eventUser"); | ||
|
||
public final com.kusitms.jipbap.common.entity.QDateEntity _super = new com.kusitms.jipbap.common.entity.QDateEntity(this); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> createdAt = _super.createdAt; | ||
|
||
public final QEvent event; | ||
|
||
public final NumberPath<Long> id = createNumber("id", Long.class); | ||
|
||
//inherited | ||
public final DateTimePath<java.time.LocalDateTime> updatedAt = _super.updatedAt; | ||
|
||
public final com.kusitms.jipbap.user.model.entity.QUser user; | ||
|
||
public QEventUser(String variable) { | ||
this(EventUser.class, forVariable(variable), INITS); | ||
} | ||
|
||
public QEventUser(Path<? extends EventUser> path) { | ||
this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); | ||
} | ||
|
||
public QEventUser(PathMetadata metadata) { | ||
this(metadata, PathInits.getFor(metadata, INITS)); | ||
} | ||
|
||
public QEventUser(PathMetadata metadata, PathInits inits) { | ||
this(EventUser.class, metadata, inits); | ||
} | ||
|
||
public QEventUser(Class<? extends EventUser> type, PathMetadata metadata, PathInits inits) { | ||
super(type, metadata, inits); | ||
this.event = inits.isInitialized("event") ? new QEvent(forProperty("event"), inits.get("event")) : null; | ||
this.user = inits.isInitialized("user") ? new com.kusitms.jipbap.user.model.entity.QUser(forProperty("user"), inits.get("user")) : null; | ||
} | ||
|
||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.kusitms.jipbap.event.aop; | ||
|
||
public enum Action { | ||
REGISTER, ENTER | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.kusitms.jipbap.event.aop; | ||
|
||
import com.kusitms.jipbap.common.entity.DateEntity; | ||
import com.kusitms.jipbap.event.model.entity.Event; | ||
import com.kusitms.jipbap.user.model.entity.User; | ||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Table(name = "tb_eventlog") | ||
@Getter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class EventLog extends DateEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "event_id") | ||
private Event event; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private Action action; // REGISTER, ENTER | ||
|
||
} |
Oops, something went wrong.