entity | entity |
---|---|
1 | - |
0 or 1 | -o| |
one and only 1 | -|| |
many | -{ |
0 or many | -o{ |
1 or many | -|{ |
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.vroong.neogeo.support.address.refiner; | |
import static com.vroong.neogeo.domain.AdditionalInfo.*; | |
import static com.vroong.neogeo.domain.RegionType.*; | |
import static com.vroong.neogeo.support.address.Regex.*; | |
import com.vroong.neogeo.domain.AddressEntry; | |
import com.vroong.neogeo.domain.AddressEntry.AddressEntryBuilder; | |
import com.vroong.neogeo.domain.Refinable; | |
import com.vroong.neogeo.support.address.Regex; |
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.nhn.jwt; | |
import com.auth0.jwt.JWT; | |
import com.auth0.jwt.algorithms.Algorithm; | |
import com.auth0.jwt.interfaces.ECDSAKeyProvider; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.common.collect.Maps; | |
import com.nimbusds.jose.*; | |
import com.nimbusds.jose.crypto.ECDSASigner; | |
import com.nimbusds.jose.jwk.Curve; |
CREATE TABLE tablea (str varchar(8), PRIMARY KEY (str));
CREATE TABLE tableb (str varchar(8), PRIMARY KEY (str));
INSERT INTO tablea (str) VALUES ('A'), ('B'), ('C'), ('D');
INSERT INTO tableb (str) VALUES ('C'), ('D'), ('E'), ('F');
-- 합집합
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 ...; | |
import org.springframework.stereotype.Component; | |
import javax.sql.DataSource; | |
import java.sql.Connection; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.HashSet; |
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
// @see https://github.com/madvirus/ddd-start | |
public enum OrderState { | |
PAYMENT_WAITING { | |
public boolean isShippingChangeable() { | |
return true; | |
} | |
}, PREPARING { | |
public boolean isShippingChangeable() { | |
return true; |
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
@Configuration | |
@EnableJpaRepositories("package.to.repository") | |
@EnableJpaAuditing(auditorAwareRef = "springSecurityAuditorAware") | |
@EnableTransactionManagement | |
public class DatabaseConfiguration { | |
private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class); | |
@Bean | |
@ConfigurationProperties(prefix = "spring.datasource.hikari.master") |
- 부모 타입이 사용될 위치에 자식 타입을 사용하는 것
- 부모 타입 대신 대입된 자식 타입이 재정의(override)한 메서드를 사용함으로써, 어떤 자식 타입이 대입되느냐에 따라서 그 실행 결과가 다양해질 수 있음
public class Foo {
void doSomething() { /*어떤 동작*/ }
}
public class Bar extends Foo {
@Override
void doSomething() { /*다른 동작*/}
(int) (Math.random() * A) + B
B 이상 (B + A) 미만의 랜덤 정수
example) 1~6 중 하나의 정수가 나오는 주사위
NewerOlder