// Path: PriceService/src/main/java/com/github/joffryferrater/priceservice/models/Price.java
// @Entity
// @Table (name="prices")
// @Data
// public class Price {
// 
// 	@Id
// 	@GeneratedValue (strategy = GenerationType.AUTO)
// 	private Long id;
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Price")
// 	private String price;
// 
// 	public Price() {
// 		super();
// 	}
// 	
// 	public Price(String itemCode, String price) {
// 		this();
// 		this.itemCode = itemCode;
// 		this.price = price;
// 	}
// }
// 
// Path: PriceService/src/main/java/com/github/joffryferrater/priceservice/models/PriceRepository.java
// @RepositoryRestResource (path="prices",  collectionResourceRel= "prices")
// public interface PriceRepository extends CrudRepository<Price, Long> {
// 
// 	Price findByItemCode(@Param("itemCode")String itemCode);
// 	
// }


import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import com.github.joffryferrater.priceservice.models.Price;
import com.github.joffryferrater.priceservice.models.PriceRepository;

package com.github.joffryferrater.priceservice;




@SpringBootApplication
@EnableDiscoveryClient
public class PriceServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(PriceServiceApplication.class, args);
	}
	
	@Autowired

// Path: PriceService/src/main/java/com/github/joffryferrater/priceservice/models/Price.java
// @Entity
// @Table (name="prices")
// @Data
// public class Price {
// 
// 	@Id
// 	@GeneratedValue (strategy = GenerationType.AUTO)
// 	private Long id;
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Price")
// 	private String price;
// 
// 	public Price() {
// 		super();
// 	}
// 	
// 	public Price(String itemCode, String price) {
// 		this();
// 		this.itemCode = itemCode;
// 		this.price = price;
// 	}
// }
// 
// Path: PriceService/src/main/java/com/github/joffryferrater/priceservice/models/PriceRepository.java
// @RepositoryRestResource (path="prices",  collectionResourceRel= "prices")
// public interface PriceRepository extends CrudRepository<Price, Long> {
// 
// 	Price findByItemCode(@Param("itemCode")String itemCode);
// 	
// }


// Path: PriceService/src/main/java/com/github/joffryferrater/priceservice/PriceServiceApplication.java
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import com.github.joffryferrater.priceservice.models.Price;
import com.github.joffryferrater.priceservice.models.PriceRepository;

package com.github.joffryferrater.priceservice;




@SpringBootApplication
@EnableDiscoveryClient
public class PriceServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(PriceServiceApplication.class, args);
	}
	
	@Autowired

	PriceRepository priceRepo;
