All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.abavilla.fpi.load.entity.Query Maven / Gradle / Ivy

Go to download

FPI Reactive backend Topup API, contains usage for DTOne and GlobeLabs Rewards API with callback functionality

The newest version!
/******************************************************************************
 * FPI Application - Abavilla                                                 *
 * Copyright (C) 2022  Vince Jerald Villamora                                 *
 *                                                                            *
 * This program is free software: you can redistribute it and/or modify       *
 * it under the terms of the GNU General Public License as published by       *
 * the Free Software Foundation, either version 3 of the License, or          *
 * (at your option) any later version.                                        *
 *                                                                            *
 * This program is distributed in the hope that it will be useful,            *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 * GNU General Public License for more details.                               *
 *                                                                            *
 * You should have received a copy of the GNU General Public License          *
 * along with this program.  If not, see .     *
 ******************************************************************************/

package com.abavilla.fpi.load.entity;

import java.time.LocalDateTime;

import com.abavilla.fpi.fw.entity.mongo.AbsMongoItem;
import com.abavilla.fpi.telco.ext.enums.BotSource;
import io.quarkus.mongodb.panache.common.MongoEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.bson.codecs.pojo.annotations.BsonDiscriminator;
import org.bson.codecs.pojo.annotations.BsonProperty;

/**
 * Entity object for storing load queries
 *
 * @author Vince Villamora
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@BsonDiscriminator
@MongoEntity(collection="query_log")
public class Query extends AbsMongoItem {

  /**
   * Query string
   */
  @BsonProperty(value = "query")
  private String body;

  /**
   * Source where the query request is originating from
   */
  private BotSource source;

  /**
   * FPI System user id
   */
  private String fpiUser;

  /**
   * Time and date when query will expire for duplicate detection.
   */
  private LocalDateTime expiry;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy