new entity conversation
This commit is contained in:
parent
a88079f5fa
commit
809055f432
19
src/main/java/com/covas/Entity/ConversationEntity.java
Normal file
19
src/main/java/com/covas/Entity/ConversationEntity.java
Normal file
@ -0,0 +1,19 @@
|
||||
package com.covas.Entity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collection;
|
||||
|
||||
import io.quarkus.mongodb.panache.PanacheMongoEntity;
|
||||
import io.quarkus.mongodb.panache.common.MongoEntity;
|
||||
|
||||
@MongoEntity(collection="conversation")
|
||||
public class ConversationEntity extends PanacheMongoEntity {
|
||||
|
||||
|
||||
public Collection<String> users;
|
||||
public Short status;
|
||||
|
||||
public LocalDateTime created_at;
|
||||
public LocalDateTime updated_at;
|
||||
public LocalDateTime deleted_at;
|
||||
}
|
@ -105,8 +105,6 @@ public class UsersEntity extends PanacheEntityBase implements Serializable {
|
||||
users.created_at = LocalDateTime.now();
|
||||
users.updated_at = LocalDateTime.now();
|
||||
users.description = "";
|
||||
|
||||
users.persist();
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user