emiling / til Goto Github PK
View Code? Open in Web Editor NEWRAM → SSD
RAM → SSD
출처 : 자바 ORM 표준 JPA 프로그래밍 7장 JPA 시작(김영한 저)
User user = userRepository.findById(userInfo.getId()).orElse(signUpUser(userInfo));
persistence.xml
설정 정보 관리META-INF/persistence.xml
에서 필요한 설정 정보를 관리한다javax.persistence
로 시작하는 속성은 JPA 표준 속성으로 특정 구현체에 종속되지 않는 한편hibernate
로 시작하는 속성은 하이버네이트 전용 속성을 의미한다<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1">
<persistence-unit name="jpabook">
<properties>
<!-- 필수 속성 -->
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password" value=""/>
<property name="javax.persistence.jdbc.url" value="jdbc:h2:tcp://localhost/~/test"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
<!-- 옵션 -->
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.use_sql_comments" value="true" />
<property name="hibernate.id.new_generator_mappings" value="true" />
<!--<property name="hibernate.hbm2ddl.auto" value="create" />-->
</properties>
</persistence-unit>
</persistence>
출처 : 자바 ORM 표준 JPA 프로그래밍 2장 JPA 시작(김영한 저)
최근 ThoughtWorks tech radar는 기술 조직에서 사용하는 안티패턴인 "CI Theatre(극장)" 운영을 보류할 것을 권고했습니다. "CI 극장"은 실제로 CI를 수행하고 있지 않음에도 CI를 실행하는 듯한 환상을 줍니다. 나와 내 동료인 Emily Luke가 수행한 CI 연구를 바탕으로, CI 극장이 어떻게 생겼는지, 왜 이런 운영을 "보류" 할 것을 권장하는지, 그리고 CI 극장에 대항하는 방법에 대해 공유 드리겠습니다.
ArgumentCaptor<T>
를 사용하여 테스트 코드를 작성했는데data class Bucket(
val id: Long = 0,
val name: String = "",
val url: String? = null
)
class BucketService {
fun execute(bucket: Bucket) { ... }
}
class BucketTest {
private lateinit var service: BucketService
// ...
@Test
fun `버킷이 정상적으로 들어왔을 때 execute 함수를 테스트한다`() {
// given & when
...
// then
val captor = ArgumentCaptor.forClass(Bucket::class.java)
verify(service, times(1)).execute(captor.capture())
...
}
}
java.lang.NullPointerException: captor.capture() must not be null
at com.example.bucket.service.BucketTest.버킷이 정상적으로 들어왔을 때 execute 함수를 테스트한다 (BucketTest.kt:39)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at java.util.ArrayList.forEach(ArrayList.java:1259)
출처 : 자바 ORM 표준 JPA 프로그래밍 3장 JPA 시작(김영한 저)
쿼리 연산에 대해 데이터가 완벽히 정해지지 않은 경우, 하나 이상의 저장소에 있는 데이터에 대해 미리 생성된(prepopulated) 뷰를 생성합니다.
이는 효율적인 쿼리나 데이터 추출, 혹은 어플리케이션 성능에 도움을 줄 수 있습니다.
출처 : https://docs.microsoft.com/en-us/azure/architecture/patterns/materialized-view
출처 : 자바 ORM 표준 JPA 프로그래밍 4장 JPA 시작(김영한 저)
출처 : https://martinfowler.com/bliki/ContinuousIntegrationCertification.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.