PK計算機
コンMicroautデータ、テネモスcomposeidボックスから.エルManejo es muy類似したque jpa ...
<論説>コンティネンヌ・ナチスの社会学
メンタリティ
https://micronaut-projects.github.io/micronaut-data/lates/guide/#sqlCompositeId
https://gitlab.com/edgar.gs/mn-r2dbc.git
<論説>コンティネンヌ・ナチスの社会学
CREATE TABLE "author_detail_entity" (
"author_id" BIGINT NOT NULL,
"book_id" BIGINT NOT NULL,
PRIMARY KEY("author_id","book_id"));
Path Fin Privstas as Path Finder : IndedeDo ,埋め込み性import io.micronaut.data.annotation.*;
@MappedEntity
public class AuthorDetailEntity {
@EmbeddedId
private AuthorDetailId authorDetailId;
public AuthorDetailEntity(AuthorDetailId authorDetailId) {
this.authorDetailId = authorDetailId;
}
public AuthorDetailId getAuthorDetailId() {
return authorDetailId;
}
}
@Embeddable
class AuthorDetailId {
@MappedProperty("author_id")
private final Long authorId;
@MappedProperty("book_id")
private final Long bookId;
public AuthorDetailId(Long authorId, Long bookId) {
this.authorId = authorId;
this.bookId = bookId;
}
public Long getAuthorId() {
return authorId;
}
public Long getBookId() {
return bookId;
}
}
拡張モジュールla obtener n crud reactivo .@R2dbcRepository(dialect = Dialect.POSTGRES)
public interface AuthorDetailRepository
extends ReactiveStreamsCrudRepository<AuthorDetailEntity, AuthorDetailId> {
}
Alunos m ' s todos provistos son find *, delete *, etc .メンタリティ
https://micronaut-projects.github.io/micronaut-data/lates/guide/#sqlCompositeId
https://gitlab.com/edgar.gs/mn-r2dbc.git
Reference
この問題について(PK計算機), 我々は、より多くの情報をここで見つけました https://dev.to/e240683/pk-compuesta-con-micronaut-r2dbc-26c1テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol