Comments (9)
Validation API is not part of JPA, and not have any releations with JPA.
so I cannot understand why searching ValidatorFactory. (my test cases runs well without validation api.)
I'll mark as invalid, but keep opened.
If you have any test case to reproduce, please comment.
from jpa-schema-gradle-plugin.
i think you're right about that Validation API is not a part of JPA.
But the thing I really want is that the project dependencies should be added automatically to the jpa-schema-gradle-plugin dependency tree.
If it doesn't, the plugin users always have to add the libraries which JPA Entities use.
from jpa-schema-gradle-plugin.
Please test with this commit. (branch master)
I'll release this when you confirm works well.
from jpa-schema-gradle-plugin.
제 영어실력으로는 의사 전달이 어려워 한국어로 씁니다.
사용자 프로젝트의 runtime 의존성을 jpa-schema-gradle-plugin의 runtime 의존성에 자동으로 추가할수는 없는지요?
당장 Validation API가 문제가 아니라 Jackson Json mapper가 Entity에 추가 될 수도 있고, JAXB 라이브러리를 Entity에서 사용할 수도 있고.. 사용자가 언제 어느 라이브러리를 Entity에 사용할지 알 수 없습니다.
따라서 그냥 사용자 project의 compile 혹은 runtime 의존성을 플러그인 의존성에 자동 추가하는 것이 근본적인 해결책으로 보입니다.
from jpa-schema-gradle-plugin.
일단 gradle이 공식적으로 그런 기능을 지원하지 않으므로 지금은 딱히 명확한 답을 드리지 못하겠습니다.
방법은 찾아보겠지만, hibernate 버전 업그레이드 작업보다는 더 힘들 것 같습니다. (디버깅이나 소스 추적으로 해결되는 문제가 아닌지라...)
from jpa-schema-gradle-plugin.
허헐... 소스 검토를 해보니 dependency 검색에 runtime이 아니라 compile이 써져있었군요.
벌써 이러면 안되는데...
늦어도 내일 아침에 0.1.7-1로 올라갑니다.
from jpa-schema-gradle-plugin.
대충 무슨 문제인지 이제 파악 (...)
Hibernate가 validation-api를 발견하면 오작동을 하는군요. 이건 대체 무슨 시츄에이션...
from jpa-schema-gradle-plugin.
이런.. 의존성 문제가 아니었군요....
from jpa-schema-gradle-plugin.
아주 어처구니 없게 해결해버렸습니다.
Validation을 안타게 옵션을 줘버리니까 끝나는군요.
0.1.8로 올라갈겁니다.
maven은 테스트 결과 아무 이상이 없는걸로 나오는데 왜지 이건...
from jpa-schema-gradle-plugin.
Related Issues (20)
- Support for Hibernate 5.2.10.Final HOT 1
- "Key ... is missing in the map" in version 0.3.0 HOT 2
- skip option is missed. HOT 1
- Spring Boot 2.0.0.RELEASE + Hibernate 5.2.12.Final - NoSuchFieldError: parallelCapableClassLoaderAvailable (0.3.1) HOT 4
- StackOverflow on EclipseLink 2.7 + Kotlin HOT 1
- java.io.NotSerializableException after migration from 0.2.1-1 to 0.3.5.1 HOT 2
- How can I use it in build.gradle.kts HOT 3
- Generate schema task throws kotlin.KotlinNullPointerException HOT 5
- Schema cannot be generated starting from Hibernate 5.4.7.Final HOT 3
- NPE while running generateSchema HOT 3
- Gradle keeps file handles on loaded jars
- kotlin dsl support HOT 1
- eclipselink 2.5 without persistence.xml
- change sql formatter
- migrate 0.3.x to 4.0 with 6.0 source HOT 1
- apply jacoco to functional test
- automate gradle plugin release HOT 2
- Could not find method generateSchema() HOT 7
- Successful generation but getting exception: The application must supply JDBC connections HOT 1
- Support Spring Boot 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpa-schema-gradle-plugin.