This file contains hidden or 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
| version: '2.2' | |
| services: | |
| es01: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.12.1 | |
| container_name: es01 | |
| environment: | |
| - discovery.type=single-node | |
| ports: | |
| - 9200:9200 | |
| redis: |
This file contains hidden or 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
| # version | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/bionic64" | |
| #loop สร้าง vm 3 เครื่อง | |
| 3.times do |n| | |
| config.vm.define "box#{n}" do |box| | |
| #set host name vm | |
| box.vm.hostname ="box#{n}" | |
| #set private network | |
| box.vm.network "private_network",ip: "192.168.33.1#{n}" |
This file contains hidden or 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
| Vagrant.configure("2") do |config| | |
| # ประกาศว่าจะเลือก OS ตัวในที่จะใช้งานใน VM | |
| config.vm.box = "ubuntu/bionic64" | |
| end |
This file contains hidden or 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.example.test.entity; | |
| import lombok.*; | |
| import javax.persistence.Id; | |
| import javax.persistence.Table; | |
| import javax.persistence.Column; | |
| import javax.persistence.SequenceGenerator; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Entity; | |
| import javax.validation.constraints.NotNull; |
This file contains hidden or 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.example.test; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.springframework.boot.test.context.SpringBootTest; | |
| import org.springframework.test.context.junit4.SpringRunner; | |
| import static org.junit.Assert.assertEquals; | |
| import static org.junit.Assert.fail; | |
| import java.util.Collections; |
This file contains hidden or 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.example.studio.studio.Controller; | |
| import com.example.studio.studio.Entity.Bill; | |
| import com.example.studio.studio.Entity.BookingEquipment; | |
| import com.example.studio.studio.Entity.Member; | |
| import com.example.studio.studio.Model.DataBill; | |
| import com.example.studio.studio.Repository.BillRepos; | |
| import com.example.studio.studio.Repository.BookingEquRepos; | |
| import org.springframework.web.bind.annotation.GetMapping; | |
| import org.springframework.web.bind.annotation.PostMapping; | |
| import org.springframework.web.bind.annotation.RequestBody; |
This file contains hidden or 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.sa.demo.entity; | |
| import javax.persistence.Entity; | |
| import javax.persistence.*; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import lombok.*; | |
| import java.util.*; |
This file contains hidden or 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.sa.demo.entity; | |
| import javax.persistence.Entity; | |
| import javax.persistence.*; | |
| import javax.persistence.Table; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import lombok.*; | |
| import java.util.*; |
This file contains hidden or 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.sa.demo.entity; | |
| import javax.persistence.Entity; | |
| import javax.persistence.*; | |
| import javax.persistence.Table; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import javax.persistence.ManyToOne; |
This file contains hidden or 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.sa.demo.entity; | |
| import javax.persistence.Entity; | |
| import javax.persistence.*; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import lombok.*; | |
| @Entity //บอกว่าเป็น class entity class ที่เก็บขอมูล | |
| @Data // lombox จะสร้าง method getter setter ให้เอง | |
| @Table(name="Car") //ชื่อตาราง |
NewerOlder