{"id":37813151,"url":"https://github.com/clroot/hibernate-reactive-coroutines","last_synced_at":"2026-01-16T15:36:10.399Z","repository":{"id":332011679,"uuid":"1130939367","full_name":"clroot/hibernate-reactive-coroutines","owner":"clroot","description":"Spring Data JPA-like convenience for Hibernate Reactive + Kotlin Coroutines","archived":false,"fork":false,"pushed_at":"2026-01-12T05:46:44.000Z","size":172,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T05:56:41.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clroot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-09T08:31:38.000Z","updated_at":"2026-01-12T03:51:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/clroot/hibernate-reactive-coroutines","commit_stats":null,"previous_names":["clroot/hibernate-reactive-coroutines"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/clroot/hibernate-reactive-coroutines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clroot%2Fhibernate-reactive-coroutines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clroot%2Fhibernate-reactive-coroutines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clroot%2Fhibernate-reactive-coroutines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clroot%2Fhibernate-reactive-coroutines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clroot","download_url":"https://codeload.github.com/clroot/hibernate-reactive-coroutines/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clroot%2Fhibernate-reactive-coroutines/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T15:36:10.188Z","updated_at":"2026-01-16T15:36:10.366Z","avatar_url":"https://github.com/clroot.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hibernate Reactive Coroutines\n\n[![](https://jitpack.io/v/clroot/hibernate-reactive-coroutines.svg)](https://jitpack.io/#clroot/hibernate-reactive-coroutines)\n[![Kotlin](https://img.shields.io/badge/Kotlin-2.2.0-blue.svg)](https://kotlinlang.org)\n[![Hibernate Reactive](https://img.shields.io/badge/Hibernate%20Reactive-3.1.0-green.svg)](https://hibernate.org/reactive/)\n[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-3.4%20%7C%204.0-brightgreen.svg)](https://spring.io/projects/spring-boot)\n\n\u003e Hibernate Reactive를 Spring Data JPA처럼 사용하세요.\n\nHibernate Reactive + Kotlin Coroutines 환경에서 Spring Data JPA의 편의성을 제공하는 라이브러리입니다.\n\n## 주요 기능\n\n- `CoroutineCrudRepository` 인터페이스 지원\n- 쿼리 메서드 자동 생성 (`findByEmail`, `existsByStatus` 등)\n- `@Query` 어노테이션으로 커스텀 JPQL\n- 페이지네이션 (`Page`, `Slice`, `Pageable`)\n- Spring `@Transactional` 통합\n- Auditing (`@CreatedDate`, `@LastModifiedDate`, `@CreatedBy`, `@LastModifiedBy`)\n\n**Spring Data JPA 기능 커버리지: ~85-90%** - 자세한 내용은 [JPA 호환성](docs/jpa-compatibility.md) 문서를 참고하세요.\n\n## 설치\n\n```kotlin\n// settings.gradle.kts\ndependencyResolutionManagement {\n    repositories {\n        mavenCentral()\n        maven { url = uri(\"https://jitpack.io\") }\n    }\n}\n\n// build.gradle.kts\ndependencies {\n    // Spring Boot 3.x\n    implementation(\"com.github.clroot.hibernate-reactive-coroutines:hibernate-reactive-coroutines-spring-boot-starter:1.0.0\")\n    \n    // Spring Boot 4.x\n    implementation(\"com.github.clroot.hibernate-reactive-coroutines:hibernate-reactive-coroutines-spring-boot-starter-boot4:1.0.0\")\n    \n    // DB 드라이버\n    implementation(\"io.vertx:vertx-pg-client:4.5.16\")\n}\n```\n\n## 빠른 시작\n\n### 1. Repository 정의\n\n```kotlin\ninterface UserRepository : CoroutineCrudRepository\u003cUser, Long\u003e {\n    suspend fun findByEmail(email: String): User?\n    suspend fun findAllByStatus(status: Status): List\u003cUser\u003e\n    \n    @Query(\"SELECT u FROM User u WHERE u.role = :role\")\n    suspend fun findByRole(role: Role): List\u003cUser\u003e\n}\n```\n\n### 2. Service에서 사용\n\n```kotlin\n@Service\nclass UserService(private val userRepository: UserRepository) {\n    \n    @Transactional\n    suspend fun createUser(name: String): User {\n        return userRepository.save(User(name = name))\n    }\n    \n    @Transactional(readOnly = true)\n    suspend fun findUser(id: Long): User? {\n        return userRepository.findById(id)\n    }\n}\n```\n\n### 3. 설정\n\n```yaml\n# application.yml\nspring:\n  datasource:\n    url: jdbc:postgresql://localhost:5432/mydb\n    username: user\n    password: password\n\nkotlin:\n  hibernate:\n    reactive:\n      pool-size: 10\n```\n\n## 문서\n\n| 문서 | 설명 |\n|------|------|\n| [사용 가이드](docs/usage-guide.md) | 상세 사용법 및 예제 |\n| [설정 레퍼런스](docs/configuration.md) | 모든 설정 옵션 |\n| [JPA 호환성](docs/jpa-compatibility.md) | JPA 스펙 지원 및 제약사항 |\n| [내부 동작](docs/internals.md) | 아키텍처 및 동작 원리 |\n| [마이그레이션](docs/migration.md) | Spring Data JPA에서 전환 가이드 |\n\n## 주의사항\n\n### Lazy Loading\n\nHibernate Reactive에서는 동기적 Lazy Loading(`parent.children.size`)이 지원되지 않습니다.\n\n```kotlin\n// FETCH JOIN 사용 (권장)\n@Query(\"SELECT p FROM Parent p LEFT JOIN FETCH p.children WHERE p.id = :id\")\nsuspend fun findByIdWithChildren(id: Long): Parent?\n\n// 또는 fetch() 메서드 사용\nval children = sessionProvider.fetch(parent, Parent::children)\n```\n\n### REQUIRES_NEW 미지원\n\n리액티브 환경에서 커넥션 풀 고갈 위험이 있어 지원하지 않습니다.\n\n## 라이선스\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclroot%2Fhibernate-reactive-coroutines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclroot%2Fhibernate-reactive-coroutines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclroot%2Fhibernate-reactive-coroutines/lists"}