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

[ISSUE-776] add selectFrom spec #777

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
docs: delete meaningless content
kihwankim committed Oct 7, 2024
commit 19d48aa08966d074b3bd601da11d4f888e508703
9 changes: 0 additions & 9 deletions docs/en/jpql-with-kotlin-jdsl/statements.md
Original file line number Diff line number Diff line change
@@ -130,15 +130,6 @@ from(

Use `selectFrom()` and pass [Entity](entities.md) and [Join](statements.md#Join-For-SelectFrom) to specify the entities for selection.
In the `selectFrom()` function you can create the select and from clause at once.

```kotlin
// It can infer the result type.
selectFrom(path(Author::class))

// It cannot infer the result type.
selectFrom(path(Author::class))
```

'SelectFrom()' has the same effect as calling the existing 'select()' and 'from()', respectively.

```kotlin
10 changes: 0 additions & 10 deletions docs/ko/jpql-with-kotlin-jdsl/statements.md
Original file line number Diff line number Diff line change
@@ -132,16 +132,6 @@ from(

select statement의 select clause와 from clause를 한 번에 만들기 위해, `selectFrom()`을 이용할 수 있습니다.
`selectFrom()`은 [Entity](entities.md)와 [Join](statements.md#Join-For-SelectFrom)을 파라미터로 받아 어떤 entity를 통해 조회가 되는지 표현합니다.


```kotlin
// It can infer the result type.
selectFrom(path(Author::class))

// It cannot infer the result type.
selectFrom(path(Author::class))
```

`selectFrom()`은 기존의 `select()`, `from()`을 각각 호출하는 것과 동일한 효과를 가져옵니다.

```kotlin