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