Giter Club home page Giter Club logo

Comments (9)

divinespear avatar divinespear commented on September 25, 2024

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.

kwon37xi avatar kwon37xi commented on September 25, 2024

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.

divinespear avatar divinespear commented on September 25, 2024

Please test with this commit. (branch master)
I'll release this when you confirm works well.

from jpa-schema-gradle-plugin.

kwon37xi avatar kwon37xi commented on September 25, 2024

제 영어실력으로는 의사 전달이 어려워 한국어로 씁니다.

사용자 프로젝트의 runtime 의존성을 jpa-schema-gradle-plugin의 runtime 의존성에 자동으로 추가할수는 없는지요?

당장 Validation API가 문제가 아니라 Jackson Json mapper가 Entity에 추가 될 수도 있고, JAXB 라이브러리를 Entity에서 사용할 수도 있고.. 사용자가 언제 어느 라이브러리를 Entity에 사용할지 알 수 없습니다.

따라서 그냥 사용자 project의 compile 혹은 runtime 의존성을 플러그인 의존성에 자동 추가하는 것이 근본적인 해결책으로 보입니다.

from jpa-schema-gradle-plugin.

divinespear avatar divinespear commented on September 25, 2024

일단 gradle이 공식적으로 그런 기능을 지원하지 않으므로 지금은 딱히 명확한 답을 드리지 못하겠습니다.
방법은 찾아보겠지만, hibernate 버전 업그레이드 작업보다는 더 힘들 것 같습니다. (디버깅이나 소스 추적으로 해결되는 문제가 아닌지라...)

from jpa-schema-gradle-plugin.

divinespear avatar divinespear commented on September 25, 2024

허헐... 소스 검토를 해보니 dependency 검색에 runtime이 아니라 compile이 써져있었군요.
벌써 이러면 안되는데...
늦어도 내일 아침에 0.1.7-1로 올라갑니다.

from jpa-schema-gradle-plugin.

divinespear avatar divinespear commented on September 25, 2024

대충 무슨 문제인지 이제 파악 (...)
Hibernate가 validation-api를 발견하면 오작동을 하는군요. 이건 대체 무슨 시츄에이션...

from jpa-schema-gradle-plugin.

kwon37xi avatar kwon37xi commented on September 25, 2024

이런.. 의존성 문제가 아니었군요....

from jpa-schema-gradle-plugin.

divinespear avatar divinespear commented on September 25, 2024

아주 어처구니 없게 해결해버렸습니다.
Validation을 안타게 옵션을 줘버리니까 끝나는군요.

0.1.8로 올라갈겁니다.

maven은 테스트 결과 아무 이상이 없는걸로 나오는데 왜지 이건...

from jpa-schema-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.