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
package com.jpa.base.repository; | |
import org.springframework.data.repository.CrudRepository; | |
import org.springframework.data.repository.query.Param; | |
import com.jpa.base.entity.Account; | |
public interface AccountRepository extends CrudRepository<Account, Long>{ | |
public Account findByEmailAddress(@Param(value="emailAddress") String emailAddress); | |
public Account findByAccountId(@Param(value="accountId") Long accountId); |
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
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration | |
public class OrderServiceTest { | |
private static final Logger log = LoggerFactory.getLogger(OrderServiceTest.class); | |
@Configuration | |
@ComponentScan(basePackages = "so") | |
static class OrderServiceConfiguration { |
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
@Entity | |
@XmlRootElement | |
@Table(name = "WAITERENTITY") | |
public class WaiterEntity implements Serializable { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String name; |
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
package io.switchbit; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; | |
@SpringBootApplication | |
@EnableDiscoveryClient | |
public class Application { |
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
... | |
/** | |
* Builds the execution command for an application. | |
* | |
* @param request the request for the application to execute | |
* @return the build command as a string array | |
*/ | |
private String[] buildExecutionCommand(AppDeploymentRequest request) { | |
ArrayList<String> commands = new ArrayList<String>(); |
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
language: java | |
jdk: | |
- oraclejdk8 |
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
variable "master_instances" { | |
description = "How many OpenShift master instances do you need?" | |
default = 1 | |
} | |
variable "node_instances" { | |
description = "How many OpenShift node instances do you need?" | |
default = 2 | |
} |
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
import * as k8s from "@pulumi/kubernetes"; | |
import {CustomResource} from "@pulumi/kubernetes/apiextensions"; | |
// Install the ECK operator | |
new k8s.yaml.ConfigGroup("eck-operator", { | |
files: "https://download.elastic.co/downloads/eck/1.0.1/all-in-one.yaml", | |
}); | |
// create a new Elasticsearch instance | |
const elastic = new CustomResource("test-elastic", { |
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
module test | |
go 1.14 | |
require ( | |
github.com/jaxxstorm/pulumi-rke/sdk/v2 v2.0.0-20200622042604-c09f47d0d6f2 | |
github.com/pulumi/pulumi-packet/sdk/v2 v2.2.2 | |
github.com/pulumi/pulumi/sdk/v2 v2.4.0 | |
) |