Skip to content

Commit

Permalink
Sync documentation of main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 2, 2024
1 parent 445002b commit 261030b
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 12 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _generated-doc/main/config/quarkus-all-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61859,7 +61859,7 @@ a| [[quarkus-redis-client_quarkus-redis-protocol-negotiation]]`link:#quarkus-red

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS_PROTOCOL_NEGOTIATION+++[]
Expand Down Expand Up @@ -62354,7 +62354,7 @@ a| [[quarkus-redis-client_quarkus-redis-redis-client-name-protocol-negotiation]]

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS__REDIS_CLIENT_NAME__PROTOCOL_NEGOTIATION+++[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ a| [[quarkus-redis-client-config-redis-config_quarkus-redis-protocol-negotiation

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS_PROTOCOL_NEGOTIATION+++[]
Expand Down Expand Up @@ -616,7 +616,7 @@ a| [[quarkus-redis-client-config-redis-config_quarkus-redis-redis-client-name-pr

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS__REDIS_CLIENT_NAME__PROTOCOL_NEGOTIATION+++[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ a| [[quarkus-redis-config-group-client-config-redis-client-config_quarkus-redis-

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS_PROTOCOL_NEGOTIATION+++[]
Expand Down Expand Up @@ -616,7 +616,7 @@ a| [[quarkus-redis-config-group-client-config-redis-client-config_quarkus-redis-

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS__REDIS_CLIENT_NAME__PROTOCOL_NEGOTIATION+++[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ a| [[quarkus-redis-general-config-items_quarkus-redis-protocol-negotiation]]`lin

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS_PROTOCOL_NEGOTIATION+++[]
Expand Down Expand Up @@ -954,7 +954,7 @@ a| [[quarkus-redis-general-config-items_quarkus-redis-redis-client-name-protocol

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS__REDIS_CLIENT_NAME__PROTOCOL_NEGOTIATION+++[]
Expand Down
4 changes: 2 additions & 2 deletions _generated-doc/main/config/quarkus-redis.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ a| [[quarkus-redis_quarkus-redis-protocol-negotiation]]`link:#quarkus-redis_quar

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS_PROTOCOL_NEGOTIATION+++[]
Expand Down Expand Up @@ -971,7 +971,7 @@ a| [[quarkus-redis_quarkus-redis-redis-client-name-protocol-negotiation]]`link:#

[.description]
--
Should the client perform ++{++@code RESP protocol negotiation during the connection handshake.
Should the client perform `RESP` protocol negotiation during the connection handshake.

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_REDIS__REDIS_CLIENT_NAME__PROTOCOL_NEGOTIATION+++[]
Expand Down
30 changes: 30 additions & 0 deletions _versions/main/guides/hibernate-orm-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,36 @@ PanacheQuery<DogDto> query = Dog.findAll().project(DogDto.class);
----
<1> The `ownerName` DTO constructor's parameter will be loaded from the `owner.name` HQL property.

In case you want to project an entity in a class with nested classes, you can use the `@NestedProjectedClass` annotation on those nested classes.

[source,java]
----
@RegisterForReflection
public class DogDto {
public String name;
public PersonDto owner;
public DogDto(String name, PersonDto owner) {
this.name = name;
this.owner = owner;
}
@NestedProjectedClass // <1>
public static class PersonDto {
public String name;
public PersonDto(String name) {
this.name = name;
}
}
}
PanacheQuery<DogDto> query = Dog.findAll().project(DogDto.class);
----

<1> This annotation can be used when you want to project `@Embedded` entity or `@ManyToOne`, `@OneToOne` relation.
It does not support `@OneToMany` or `@ManyToMany` relation.

It is also possible to specify a HQL query with a select clause. In this case, the projection class must have a constructor
matching the values returned by the select clause:

Expand Down
31 changes: 31 additions & 0 deletions _versions/main/guides/hibernate-reactive-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,37 @@ PanacheQuery<DogDto> query = Dog.findAll().project(DogDto.class);
----
<1> The `ownerName` DTO constructor's parameter will be loaded from the `owner.name` HQL property.

In case you want to project an entity in a class with nested classes, you can use the `@NestedProjectedClass` annotation on those nested classes.

[source,java]
----
@RegisterForReflection
public class DogDto {
public String name;
public PersonDto owner;
public DogDto(String name, PersonDto owner) {
this.name = name;
this.owner = owner;
}
@NestedProjectedClass // <1>
public static class PersonDto {
public String name;
public PersonDto(String name) {
this.name = name;
}
}
}
PanacheQuery<DogDto> query = Dog.findAll().project(DogDto.class);
----

<1> This annotation can be used when you want to project `@Embedded` entity or `@ManyToOne`, `@OneToOne` relation.
It does not support `@OneToMany` or `@ManyToMany` relation.

It is also possible to specify a HQL query with a select clause. In this case, the projection class must have a constructor
matching the values returned by the select clause:

Expand Down

0 comments on commit 261030b

Please sign in to comment.