application stringclasses 13
values | path stringlengths 53 134 | content stringlengths 61 5.44k |
|---|---|---|
resources | oms-tutorial/oms-webmvc/src/main/resources/schema.sql | DROP ALL OBJECTS;
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 1 INCREMENT BY 1;
CREATE TABLE BILL_TO_ADDRESS (
BILL_TO_ADDRESS_ID VARCHAR2(20) NOT NULL ,
FIRST_NAME VARCHAR2(20),
LAST_NAME VARCHAR2(20),
ADDRESS_1 VARCHAR2(100),
ADDRESS_2 VARCHAR2(100),
CITY VARCHAR2(20),
STATE VARCHAR2(20),
ZIP_CODE... |
oms | oms-tutorial/oms-webmvc/src/main/java/com/oms/OMSAppConfig.java | package com.oms;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
@Configuration
@EnableWebMvc
public class OMSAppConfig {
}
|
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/AddressValidationRequestDto.java | package com.oms.dto;
public class AddressValidationRequestDto {
private String addressLine1;
private String addressLine2;
private String city;
private String state;
private String postalCode;
private String country;
public AddressValidationRequestDto() {
}
public AddressValidation... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/InventoryRequestDto.java | package com.oms.dto;
public class InventoryRequestDto {
private String skuId;
private String storeId;
public InventoryRequestDto(String skuId, String storeId) {
this.skuId = skuId;
this.storeId = storeId;
}
public String getSkuId() {
return skuId;
}
public void s... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/AddressValidationResponseDto.java | package com.oms.dto;
import lombok.Getter;
import lombok.Setter;
@Getter @Setter
public class AddressValidationResponseDto {
private String addressLine1;
private String addressLine2;
private String city;
private String state;
private String postalCode;
private String country;
public Addre... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/StoreSearchResponseDto.java | package com.oms.dto;
public class StoreSearchResponseDto {
}
|
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/EmailResponseDto.java | package com.oms.dto;
public class EmailResponseDto {
private String salesOrderNumber;
private String emailType;
private String emailStatus;
public EmailResponseDto(String salesOrderNumber, String emailType, String emailStatus) {
this.salesOrderNumber = salesOrderNumber;
this.emailType... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/EmailRequestDto.java | package com.oms.dto;
public class EmailRequestDto {
private String salesOrderNumber;
private String messageTitle;
private String messageBody;
private String emailType;
public EmailRequestDto(String salesOrderNumber, String messageTitle, String messageBody, String emailType) {
this.salesO... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/StoreSearchRequestDto.java | package com.oms.dto;
public class StoreSearchRequestDto {
}
|
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/AuthorizationRequestDto.java | package com.oms.dto;
import java.util.Objects;
public class AuthorizationRequestDto {
private String cardType;
private String cardNumber;
private String cardExpiryDate;
private String secureCode;
private Double amount;
public AuthorizationRequestDto(String cardType, String cardNumber, String ... |
dto | oms-tutorial/oms-webmvc/src/main/java/com/oms/dto/AuthorizationResponseDto.java | package com.oms.dto;
public class AuthorizationResponseDto {
private String id;
private Double amount;
private String status;
public AuthorizationResponseDto(String id, Double amount, String status) {
this.id = id;
this.amount = amount;
this.status = status;
}
public ... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/Inventory.java | package com.oms.entity;
import javax.persistence.*;
@Entity
@Table(name = "INVENTORY")
public class Inventory {
@Column(name = "SKU_ID")
@Id
private String skuId;
@Column(name = "STORE_ID")
private String storeId;
@Column(name = "QTY")
private int quantity;
public Inventory() {
... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/LineCharges.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "LINE_CHARGE")
@Getter
@Setter
public class LineCharges {
@Column(name = "LINE_CHARGE_ID")
... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/Charges.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "CHARGES")
@Getter @Setter
public class Charges {
@Column(name = "CHARGES_ID")
@Id
private String chargesId;
@Column(name = "LINE_SUB_TOTAL")
private Double lineSubTotal;
@... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/ShipToAddress.java | package com.oms.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "SHIP_TO_ADDRESS")
@Getter @Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class ShipToAddress {
@Column(name = "SHIP_TO_... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/SalesOrder.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "SALES_ORDER")
@Getter @Setter
public class SalesOrder {
@Id
@Column(name = "CUSTOMER_ORDER_ID")
private String customerOrderId;
@Column(name = "PRIMARY_PHONE... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/PaymentInfo.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "PAYMENT_INFO")
@Getter @Setter
public class PaymentInfo {
@Column(name = "PAYMENT_ID")
@Id
private String paymentId;
@Column(name = "PAYMENT_STATUS")
private String paymentStat... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/OrderLine.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "ORDER_LINE")
@Getter @Setter
public class OrderLine {
@Column(name = "LINE_ITEM_ID")
@Id
private String lineItemId;
@Column(name = "CUSTOMER_ORDER_ID")
private String custo... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/Product.java | package com.oms.entity;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
@Entity
@Table(name = "PRODUCT_INFO")
@Getter @Setter
public class Product {
@Id
@Column(name = "PRODUCT_ID")
private String productId;
@Column(name = "NAME")
private String name;
@Column(name ... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/Shipping.java | package com.oms.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "SHIPPING")
public class Shipping {
@Id
@Column(name = "SKU_ID")
private String skuId;
@Column(name = "STANDARD_SHIPPING")
... |
entity | oms-tutorial/oms-webmvc/src/main/java/com/oms/entity/BillToAddress.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "BILL_TO_ADDRESS")
@Getter @Setter
public class BillToAddress {
@Id
@Column(name = "BILL_TO_ADDRESS_ID")
private String billToAddressId;
@Column(name = "FIRST_NAME")
private Str... |
util | oms-tutorial/oms-webmvc/src/main/java/com/oms/util/Logger.java | package com.oms.util;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
public class Logger {
private String path;
private FileOutputStream os;
public void setPath(String path) {
this.path = path;
}
public void log(String msg) {
try {
... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/ShippingPriceController.java | package com.oms.controller;
import com.oms.entity.Shipping;
import com.oms.service.ShippingService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import o... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/ModifyFulfillmentController.java | package com.oms.controller;
import com.oms.entity.SalesOrder;
import com.oms.service.ModifyFulfillmentService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVaria... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/ProductController.java | package com.oms.controller;
import com.oms.entity.Inventory;
import com.oms.entity.OrderLine;
import com.oms.entity.Product;
import com.oms.service.ProductService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
impo... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/OrderController.java | package com.oms.controller;
import com.oms.entity.SalesOrder;
import com.oms.service.OrderService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import or... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/InventoryController.java | package com.oms.controller;
import com.oms.entity.Inventory;
import com.oms.service.InventoryService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import... |
controller | oms-tutorial/oms-webmvc/src/main/java/com/oms/controller/StoreSearchController.java | package com.oms.controller;
import com.oms.service.StoreSearchService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.a... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/AmexPaymentHttpClient.java | package com.oms.integrations;
import org.springframework.stereotype.Component;
@Component
public class AmexPaymentHttpClient extends AbstractPaymentHttpClient {
public AmexPaymentHttpClient() {
super(8.0);
}
}
|
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/AbstractPaymentHttpClient.java | package com.oms.integrations;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import java.util.concurrent.atomic.AtomicInteger;
public abstract class AbstractPaymentHttpClient implements PaymentHttpClient {
private AtomicInteger useCnt = new AtomicInteger();
private d... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/PaymentQualifier.java | package com.oms.integrations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.beans.factory.annotation.Qualifier;
@Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/DinersPaymentHttpClient.java | package com.oms.integrations;
import org.springframework.stereotype.Component;
@Component
@PaymentQualifier("diners")
public class DinersPaymentHttpClient extends AbstractPaymentHttpClient {
public DinersPaymentHttpClient() {
super(10.0);
}
}
|
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/EmailHttpClientImpl.java | package com.oms.integrations;
import com.oms.dto.EmailRequestDto;
import org.springframework.stereotype.Component;
import java.util.concurrent.atomic.AtomicInteger;
@Component
public class EmailHttpClientImpl implements EmailHttpClient {
private AtomicInteger useCnt = new AtomicInteger();
@Override
publ... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/EmailHttpClient.java | package com.oms.integrations;
import com.oms.dto.EmailRequestDto;
import org.springframework.stereotype.Service;
@Service
public interface EmailHttpClient {
String sendEmail(EmailRequestDto emailRequestDto);
}
|
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/AddressValidatorHttpClient.java | package com.oms.integrations;
import com.oms.dto.AddressValidationRequestDto;
import com.oms.dto.AddressValidationResponseDto;
import org.springframework.stereotype.Service;
@Service
public interface AddressValidatorHttpClient {
AddressValidationResponseDto standardizeAddress(AddressValidationRequestDto addressV... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/PaymentHttpClient.java | package com.oms.integrations;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import org.springframework.stereotype.Service;
@Service
public interface PaymentHttpClient {
public AuthorizationResponseDto authorize(AuthorizationRequestDto authorizationRequestDto);
public... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/VisaPaymentHttpClient.java | package com.oms.integrations;
import org.springframework.stereotype.Component;
@Component
public class VisaPaymentHttpClient extends AbstractPaymentHttpClient {
public VisaPaymentHttpClient() {
super(7.0);
this.getClass().getClassLoader().getResource("payment-info.xml");
}
}... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/AddressValidatorHttpClientImpl.java | package com.oms.integrations;
import com.oms.dto.AddressValidationRequestDto;
import com.oms.dto.AddressValidationResponseDto;
import org.springframework.stereotype.Component;
@Component
public class AddressValidatorHttpClientImpl implements AddressValidatorHttpClient{
@Override
public AddressValidationRespo... |
integrations | oms-tutorial/oms-webmvc/src/main/java/com/oms/integrations/MastercardPaymentHttpClient.java | package com.oms.integrations;
import org.springframework.stereotype.Component;
@Component
public class MastercardPaymentHttpClient extends AbstractPaymentHttpClient {
public MastercardPaymentHttpClient() {
super(13.0);
}
}
|
repository | oms-tutorial/oms-webmvc/src/main/java/com/oms/repository/InventoryRepository.java | package com.oms.repository;
import com.oms.entity.Inventory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface InventoryRepository extends JpaRepository<Inventory, String> {
}
|
repository | oms-tutorial/oms-webmvc/src/main/java/com/oms/repository/SalesOrderRepository.java | package com.oms.repository;
import com.oms.entity.SalesOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface SalesOrderRepository extends JpaRepository<SalesOrder, String> {
}
|
repository | oms-tutorial/oms-webmvc/src/main/java/com/oms/repository/ProductRepository.java | package com.oms.repository;
import com.oms.entity.Product;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductRepository extends JpaRepository<Product, String> {
Option... |
repository | oms-tutorial/oms-webmvc/src/main/java/com/oms/repository/ShippingRepository.java | package com.oms.repository;
import com.oms.entity.Shipping;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ShippingRepository extends JpaRepository<Shipping ,String> {
}
|
repository | oms-tutorial/oms-webmvc/src/main/java/com/oms/repository/OrderLineRepository.java | package com.oms.repository;
import com.oms.entity.OrderLine;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface OrderLineRepository extends JpaRepository<OrderLine, String> {
List<OrderLine> findByCust... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/AddressValidationService.java | package com.oms.service;
import com.oms.dto.AddressValidationRequestDto;
import com.oms.dto.AddressValidationResponseDto;
import com.oms.integrations.AddressValidatorHttpClient;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
imp... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/PaymentService.java | package com.oms.service;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import com.oms.integrations.PaymentHttpClient;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transa... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/ProductService.java | package com.oms.service;
import com.oms.entity.Inventory;
import com.oms.entity.LineCharges;
import com.oms.entity.OrderLine;
import com.oms.entity.Product;
import com.oms.entity.Shipping;
import com.oms.repository.OrderLineRepository;
import com.oms.repository.ProductRepository;
import com.oms.util.Logger;
import org... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/StoreSearchService.java | package com.oms.service;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
@Service
@Tra... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/ModifyFulfillmentService.java | package com.oms.service;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import com.oms.dto.EmailRequestDto;
import com.oms.entity.OrderLine;
import com.oms.entity.SalesOrder;
import com.oms.entity.Shipping;
import com.oms.repository.SalesOrderRepository;
import com.oms.util.Lo... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/EmailService.java | package com.oms.service;
import com.oms.dto.EmailRequestDto;
import com.oms.integrations.EmailHttpClient;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional
public cl... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/OrderService.java | package com.oms.service;
import com.oms.entity.SalesOrder;
import com.oms.repository.SalesOrderRepository;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional
public c... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/ShippingService.java | package com.oms.service;
import com.oms.entity.Shipping;
import com.oms.repository.ShippingRepository;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional
public class... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/InventoryService.java | package com.oms.service;
import com.oms.entity.Inventory;
import com.oms.util.Logger;
import org.apache.geode.cache.Region;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import javax.transact... |
service | oms-tutorial/oms-webmvc/src/main/java/com/oms/service/DinersPaymentService.java | package com.oms.service;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import com.oms.integrations.PaymentHttpClient;
import com.oms.integrations.PaymentQualifier;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... |
gemfire | oms-tutorial/oms-webmvc/src/main/java/com/oms/gemfire/GemfireCacheWriter.java | package com.oms.gemfire;
import org.apache.geode.cache.CacheWriter;
import org.apache.geode.cache.CacheWriterException;
import org.apache.geode.cache.EntryEvent;
import org.apache.geode.cache.RegionEvent;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Properties;
public class GemfireC... |
gemfire | oms-tutorial/oms-webmvc/src/main/java/com/oms/gemfire/GemfireCacheLoader.java | package com.oms.gemfire;
import org.apache.geode.cache.CacheLoader;
import org.apache.geode.cache.CacheLoaderException;
import org.apache.geode.cache.LoaderHelper;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Properties;
public class GemfireCacheLoader<T> implements CacheLoader<Stri... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/StoreSearchServiceTest.java | package com.oms.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import java.util.List;
import com.oms.util.Logger;
@RunWith(MockitoJUnitRunner.class)
public class StoreSearchServiceTest {
StoreSearc... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/PaymentServiceTest.java | package com.oms.service;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import com.oms.integrations.PaymentHttpClient;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/ProductServiceTest.java | package com.oms.service;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
import com.fasterxml.jackson.core.JsonProcessingException;
import c... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/OrderServiceTest.java | package com.oms.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.oms.entity.SalesOrder;
import com.oms.repository.SalesOrderRepository;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/ModifyFulfillmentServiceTest.java | package com.oms.service;
import com.oms.dto.AuthorizationRequestDto;
import com.oms.dto.AuthorizationResponseDto;
import com.oms.entity.LineCharges;
import com.oms.entity.OrderLine;
import com.oms.entity.PaymentInfo;
import com.oms.entity.SalesOrder;
import com.oms.entity.Shipping;
import com.oms.repository.SalesOrder... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/ShippingServiceTest.java | package com.oms.service;
import com.oms.entity.Shipping;
import com.oms.repository.ShippingRepository;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import sta... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/AddressValidationServiceTest.java | package com.oms.service;
import com.oms.dto.AddressValidationRequestDto;
import com.oms.dto.AddressValidationResponseDto;
import com.oms.integrations.AddressValidatorHttpClient;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/EmailServiceTest.java | package com.oms.service;
import com.oms.dto.EmailRequestDto;
import com.oms.integrations.EmailHttpClient;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import ... |
service | oms-tutorial/oms-webmvc/src/test/java/com/oms/service/InventoryServiceTest.java | package com.oms.service;
import com.oms.entity.Inventory;
import com.oms.util.Logger;
import org.apache.geode.cache.Region;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import static org... |
resources | oms-tutorial/oms-services/product-controller/src/main/resources/schema.sql | DROP ALL OBJECTS;
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 1 INCREMENT BY 1;
CREATE TABLE BILL_TO_ADDRESS (
BILL_TO_ADDRESS_ID VARCHAR2(20) NOT NULL ,
FIRST_NAME VARCHAR2(20),
LAST_NAME VARCHAR2(20),
ADDRESS_1 VARCHAR2(100),
ADDRESS_2 VARCHAR2(100),
CITY VARCHAR2(20),
STATE VARCHAR2(20),
ZIP_CODE... |
productcontroller | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/productcontroller/ProductControllerApp.java | package com.oms.productcontroller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
@ImportResour... |
controller | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/controller/ProductController.java | package com.oms.controller;
import com.oms.entity.Inventory;
import com.oms.entity.OrderLine;
import com.oms.entity.Product;
import com.oms.service.ProductService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
impo... |
repository | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/repository/ProductRepository.java | package com.oms.repository;
import com.oms.entity.Product;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductRepository extends JpaRepository<Product, String> {
Option... |
repository | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/repository/OrderLineRepository.java | package com.oms.repository;
import com.oms.entity.OrderLine;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface OrderLineRepository extends JpaRepository<OrderLine, String> {
List<OrderLine> findByCust... |
service | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/service/ProductService.java | package com.oms.service;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframe... |
dto | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/inventorycontroller/dto/InventoryServiceFetchInventoryOutDTO.java | package com.oms.inventorycontroller.dto;
import com.oms.entity.Inventory;
public class InventoryServiceFetchInventoryOutDTO {
private Inventory retVal;
public Inventory getRetVal() {
return retVal;
}
public void setRetVal(Inventory retVal) {
this.retVal = retVal;
}
... |
dto | oms-tutorial/oms-services/product-controller/src/main/java/com/oms/inventorycontroller/dto/InventoryServiceFetchInventoryInDTO.java | package com.oms.inventorycontroller.dto;
public class InventoryServiceFetchInventoryInDTO {
private String skuId;
public String getSkuId() {
return skuId;
}
public void setSkuId(String skuId) {
this.skuId = skuId;
}
} |
service | oms-tutorial/oms-services/product-controller/src/test/java/com/oms/service/ProductServiceTest.java | package com.oms.service;
import static org.junit.Assert.assertNotNull;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
import com.fasterxml.jackson.core.JsonProcessingException;
import c... |
resources | oms-tutorial/oms-services/order-controller/src/main/resources/schema.sql | DROP ALL OBJECTS;
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 1 INCREMENT BY 1;
CREATE TABLE BILL_TO_ADDRESS (
BILL_TO_ADDRESS_ID VARCHAR2(20) NOT NULL ,
FIRST_NAME VARCHAR2(20),
LAST_NAME VARCHAR2(20),
ADDRESS_1 VARCHAR2(100),
ADDRESS_2 VARCHAR2(100),
CITY VARCHAR2(20),
STATE VARCHAR2(20),
ZIP_CODE... |
controller | oms-tutorial/oms-services/order-controller/src/main/java/com/oms/controller/OrderController.java | package com.oms.controller;
import com.oms.entity.SalesOrder;
import com.oms.service.OrderService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import or... |
repository | oms-tutorial/oms-services/order-controller/src/main/java/com/oms/repository/SalesOrderRepository.java | package com.oms.repository;
import com.oms.entity.SalesOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface SalesOrderRepository extends JpaRepository<SalesOrder, String> {
}
|
ordercontroller | oms-tutorial/oms-services/order-controller/src/main/java/com/oms/ordercontroller/OrderControllerApp.java | package com.oms.ordercontroller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
@ImportResource... |
service | oms-tutorial/oms-services/order-controller/src/main/java/com/oms/service/OrderService.java | package com.oms.service;
import com.oms.entity.SalesOrder;
import com.oms.repository.SalesOrderRepository;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
@Service
@Transactional
public c... |
service | oms-tutorial/oms-services/order-controller/src/test/java/com/oms/service/OrderServiceTest.java | package com.oms.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.oms.entity.SalesOrder;
import com.oms.repository.SalesOrderRepository;
import com.oms.util.Logger;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/Inventory.java | package com.oms.entity;
import javax.persistence.*;
@Entity
@Table(name = "INVENTORY")
public class Inventory {
@Column(name = "SKU_ID")
@Id
private String skuId;
@Column(name = "STORE_ID")
private String storeId;
@Column(name = "QTY")
private int quantity;
public Inventory() {
... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/LineCharges.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "LINE_CHARGE")
@Getter
@Setter
public class LineCharges {
@Column(name = "LINE_CHARGE_ID")
... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/Charges.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "CHARGES")
@Getter @Setter
public class Charges {
@Column(name = "CHARGES_ID")
@Id
private String chargesId;
@Column(name = "LINE_SUB_TOTAL")
private Double lineSubTotal;
@... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/ShipToAddress.java | package com.oms.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "SHIP_TO_ADDRESS")
@Getter @Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class ShipToAddress {
@Column(name = "SHIP_TO_... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/SalesOrder.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "SALES_ORDER")
@Getter @Setter
public class SalesOrder {
@Id
@Column(name = "CUSTOMER_ORDER_ID")
private String customerOrderId;
@Column(name = "PRIMARY_PHONE... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/PaymentInfo.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "PAYMENT_INFO")
@Getter @Setter
public class PaymentInfo {
@Column(name = "PAYMENT_ID")
@Id
private String paymentId;
@Column(name = "PAYMENT_STATUS")
private String paymentStat... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/OrderLine.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "ORDER_LINE")
@Getter @Setter
public class OrderLine {
@Column(name = "LINE_ITEM_ID")
@Id
private String lineItemId;
@Column(name = "CUSTOMER_ORDER_ID")
private String custo... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/Product.java | package com.oms.entity;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
@Entity
@Table(name = "PRODUCT_INFO")
@Getter @Setter
public class Product {
@Id
@Column(name = "PRODUCT_ID")
private String productId;
@Column(name = "NAME")
private String name;
@Column(name ... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/Shipping.java | package com.oms.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "SHIPPING")
public class Shipping {
@Id
@Column(name = "SKU_ID")
private String skuId;
@Column(name = "STANDARD_SHIPPING")
... |
entity | oms-tutorial/oms-services/common/src/main/java/com/oms/entity/BillToAddress.java | package com.oms.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Table(name = "BILL_TO_ADDRESS")
@Getter @Setter
public class BillToAddress {
@Id
@Column(name = "BILL_TO_ADDRESS_ID")
private String billToAddressId;
@Column(name = "FIRST_NAME")
private Str... |
util | oms-tutorial/oms-services/common/src/main/java/com/oms/util/Logger.java | package com.oms.util;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
public class Logger {
private String path;
private FileOutputStream os;
public void setPath(String path) {
this.path = path;
}
public void log(String msg) {
try {
... |
resources | oms-tutorial/oms-services/inventory-controller/src/main/resources/schema.sql | DROP ALL OBJECTS;
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 1 INCREMENT BY 1;
CREATE TABLE BILL_TO_ADDRESS (
BILL_TO_ADDRESS_ID VARCHAR2(20) NOT NULL ,
FIRST_NAME VARCHAR2(20),
LAST_NAME VARCHAR2(20),
ADDRESS_1 VARCHAR2(100),
ADDRESS_2 VARCHAR2(100),
CITY VARCHAR2(20),
STATE VARCHAR2(20),
ZIP_CODE... |
controller | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/controller/InventoryController.java | package com.oms.controller;
import com.oms.entity.Inventory;
import com.oms.service.InventoryService;
import com.oms.util.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import... |
repository | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/repository/InventoryRepository.java | package com.oms.repository;
import com.oms.entity.Inventory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface InventoryRepository extends JpaRepository<Inventory, String> {
}
|
service | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/service/InventoryService.java | package com.oms.service;
import com.oms.entity.Inventory;
import com.oms.util.Logger;
import org.apache.geode.cache.Region;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import javax.transact... |
inventorycontroller | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/inventorycontroller/InventoryServiceController.java | package com.oms.inventorycontroller;
import org.springframework.beans.factory.annotation.*;
import org.springframework.http.*;
import org.springframework.web.bind.annotation.*;
import com.oms.inventorycontroller.dto.*;
import com.oms.service.InventoryService;
@RestController
@RequestMapping("/inventoryService")
publ... |
inventorycontroller | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/inventorycontroller/InventoryControllerApp.java | package com.oms.inventorycontroller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
@ImportReso... |
dto | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/inventorycontroller/dto/InventoryServiceFetchInventoryOutDTO.java | package com.oms.inventorycontroller.dto;
import com.oms.entity.Inventory;
public class InventoryServiceFetchInventoryOutDTO {
private Inventory retVal;
public Inventory getRetVal() {
return retVal;
}
public void setRetVal(Inventory retVal) {
this.retVal = retVal;
}
... |
dto | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/inventorycontroller/dto/InventoryServiceFetchInventoryInDTO.java | package com.oms.inventorycontroller.dto;
public class InventoryServiceFetchInventoryInDTO {
private String skuId;
public String getSkuId() {
return skuId;
}
public void setSkuId(String skuId) {
this.skuId = skuId;
}
} |
gemfire | oms-tutorial/oms-services/inventory-controller/src/main/java/com/oms/gemfire/GemfireCacheWriter.java | package com.oms.gemfire;
import org.apache.geode.cache.CacheWriter;
import org.apache.geode.cache.CacheWriterException;
import org.apache.geode.cache.EntryEvent;
import org.apache.geode.cache.RegionEvent;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Properties;
public class GemfireC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.