Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve documentation and align indentation #793

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

* [Kotlin JDSL](README.md)
* [JPQL with Kotlin JDSL](jpql-with-kotlin-jdsl/README.md)
* [Statements](jpql-with-kotlin-jdsl/statements.md)
* [Entities](jpql-with-kotlin-jdsl/entities.md)
* [Paths](jpql-with-kotlin-jdsl/paths.md)
* [Expressions](jpql-with-kotlin-jdsl/expressions.md)
* [Predicates](jpql-with-kotlin-jdsl/predicates.md)
* [Sorts](jpql-with-kotlin-jdsl/sorts.md)
* [Subqueries](jpql-with-kotlin-jdsl/subqueries.md)
* [Custom DSL](jpql-with-kotlin-jdsl/custom-dsl.md)
* [Spring supports](jpql-with-kotlin-jdsl/spring-supports.md)
* [Migration 2.X to 3.X](jpql-with-kotlin-jdsl/migration-2.x-to-3.x.md)
* [Statements](jpql-with-kotlin-jdsl/statements.md)
* [Entities](jpql-with-kotlin-jdsl/entities.md)
* [Paths](jpql-with-kotlin-jdsl/paths.md)
* [Expressions](jpql-with-kotlin-jdsl/expressions.md)
* [Predicates](jpql-with-kotlin-jdsl/predicates.md)
* [Sorts](jpql-with-kotlin-jdsl/sorts.md)
* [Subqueries](jpql-with-kotlin-jdsl/subqueries.md)
* [Custom DSL](jpql-with-kotlin-jdsl/custom-dsl.md)
* [Spring supports](jpql-with-kotlin-jdsl/spring-supports.md)
* [Migration 2.X to 3.X](jpql-with-kotlin-jdsl/migration-2.x-to-3.x.md)
* [Kotlin JDSL Roadmap](kotlin-jdsl-roadmap.md)

## FAQ
Expand Down
20 changes: 10 additions & 10 deletions docs/ko/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

* [Kotlin JDSL](README.md)
* [JPQL with Kotlin JDSL](jpql-with-kotlin-jdsl/README.md)
* [Statements](jpql-with-kotlin-jdsl/statements.md)
* [Entities](jpql-with-kotlin-jdsl/entities.md)
* [Paths](jpql-with-kotlin-jdsl/paths.md)
* [Expressions](jpql-with-kotlin-jdsl/expressions.md)
* [Predicates](jpql-with-kotlin-jdsl/predicates.md)
* [Sorts](jpql-with-kotlin-jdsl/sorts.md)
* [Subqueries](jpql-with-kotlin-jdsl/subqueries.md)
* [Custom DSL](jpql-with-kotlin-jdsl/custom-dsl.md)
* [Spring supports](jpql-with-kotlin-jdsl/spring-supports.md)
* [Migration 2.X to 3.X](jpql-with-kotlin-jdsl/migration-2.x-to-3.x.md)
* [Statements](jpql-with-kotlin-jdsl/statements.md)
* [Entities](jpql-with-kotlin-jdsl/entities.md)
* [Paths](jpql-with-kotlin-jdsl/paths.md)
* [Expressions](jpql-with-kotlin-jdsl/expressions.md)
* [Predicates](jpql-with-kotlin-jdsl/predicates.md)
* [Sorts](jpql-with-kotlin-jdsl/sorts.md)
* [Subqueries](jpql-with-kotlin-jdsl/subqueries.md)
* [Custom DSL](jpql-with-kotlin-jdsl/custom-dsl.md)
* [Spring supports](jpql-with-kotlin-jdsl/spring-supports.md)
* [Migration 2.X to 3.X](jpql-with-kotlin-jdsl/migration-2.x-to-3.x.md)
* [Kotlin JDSL Roadmap](kotlin-jdsl-roadmap.md)

## FAQ
Expand Down
3 changes: 2 additions & 1 deletion docs/ko/jpql-with-kotlin-jdsl/migration-2.x-to-3.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Migration 2.X to 3.X

Kotlin JDSL 2.X와 3.X는 둘 사이에 패키지 충돌이 없기 때문에 하나의 어플리케이션에서 같이 사용할 수 있습니다. 그래서 신규로 작성하는 쿼리는 Kotlin JDSL 3.X로 작성하고 점진적으로 Kotlin JDSL 2.X로 작성된 쿼리를 Kotlin JDSL 3.X로 옮겨가면 됩니다. 
Kotlin JDSL 2.X와 3.X는 둘 사이에 패키지 충돌이 없기 때문에 하나의 어플리케이션에서 같이 사용할 수 있습니다.
그래서 신규로 작성하는 쿼리는 Kotlin JDSL 3.X로 작성하고 점진적으로 Kotlin JDSL 2.X로 작성된 쿼리를 Kotlin JDSL 3.X로 옮겨가면 됩니다.
7 changes: 4 additions & 3 deletions docs/ko/jpql-with-kotlin-jdsl/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Kotlin JDSL은 JPQL의 conditional expression을 표현하기 위해 `Predicate`

{% hint style="info" %}
만약 `and()` 와 `or()`로 넘어온 `Predicate`가 모두 null 이거나 비어 있으면, `and()`의 경우에는 `1 = 1`로 `or()`의 경우에는 `0 = 1`로 해석됩니다.
그렇기 떄문에 다이나믹 쿼리를 만들 때 조심해야 합니다.
그렇기 때문에 다이나믹 쿼리를 만들 때 조심해야 합니다.
{% endhint %}

```kotlin
Expand Down Expand Up @@ -168,8 +168,9 @@ function(Boolean::class, "myFunction", path(Book::isbn))
```

{% hint style="info" %}
사용할 함수의 정보를 JPA 제공자에 등록할 필요가 있을 수 있습니다.
예를 들어 Hibernate를 사용하고 있다면 `FunctionContributor`를 반드시 등록해야 합니다.
사용하려는 함수에 대한 정보를 JPA Provider에 등록해야 할 수도 있습니다.

예를 들어, Hibernate를 사용하고 있다면 `FunctionContributor`를 반드시 등록해야 합니다.
{% endhint %}

## Custom predicate
Expand Down
Loading