Questions tagged [jpamodelgen]
26 questions
0
votes
1 answer
quarkus project not generating classes with hibernate-jpamodelgen
I'm having troubles generating metamodel classes with hibernate-jpamodelgen to use with Criterta.
To reproduce, generate a quarkus project on quarkus.io with Hibernate ORM and add the following dependency to the pom:
…

beneken
- 1
- 1
0
votes
0 answers
jpamodelgen classes created, but can't access from repository
I added some jpamodelgen to my gradle build file:
// https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen
compileOnly 'org.hibernate:hibernate-jpamodelgen:6.1.5.Final'
annotationProcessor 'org.hibernate:hibernate-jpamodelgen'
and…

badperson
- 1,554
- 3
- 19
- 41
0
votes
0 answers
Intellij generating jpa modelgen classes empty
I have a complicated project imported in intellij
Parent project and submodules (all submodules are also git submodules)
One of jar submodule A(wicket aopplication) is using another jar module B as a lib> In B we are using jpa modelgen form…

cyril
- 872
- 6
- 29
0
votes
0 answers
Trying to understand this weird Java / hibernate-jpamodelgen behaviour
I'm trying to understand a weird behaviour related to hibernate-jpamodelgen but maybe more to Java in general.
I have entities and I generate code via hibernate-jpamodelgen. That all works but then I tried something that cost me a few days and a lot…

zemirco
- 16,171
- 8
- 62
- 96
0
votes
1 answer
"illegal character" error when using hibernate-jpamodelgen in Spring Boot

Furkan Işıtan
- 74
- 1
- 7
0
votes
0 answers
Gradle: Annotation Processor can't find project dependency
I'm fairly new to Gradle and I have a project which uses JPA modelgen. Said project depends on another project which is our own and the annotation processor can't find this dependency. It has no issues resolving external dependencies.
Relevant part…

mackesmilian
- 91
- 8
0
votes
1 answer
JPA correct location and packaging of metamodels
I'm trying to make my project generates JPA metamodels for my entities.
I'm using gradle on my project, so I added this line to my build.gradle dependencies object
annotationProcessor('org.hibernate:hibernate-jpamodelgen')
It actually works and…

4javier
- 481
- 2
- 7
- 22
0
votes
1 answer
Hibernate JPAModelGen 5.4.6.Final fails on JDK11
I am unable to build JPA2 projects after upgrading my JDK to 11 and getting errors, cannot find symbol. I checked and the package names have changed in 11. So, for instance:
Generated is no longer in:
javax.annotation
Now, it is…

Walter
- 1,290
- 2
- 21
- 46
0
votes
1 answer
HHH015007: Illegal argument on static metamodel field injection: expected: PluralAttributeImpl$SetAttributeImpl; encountered: SingularAttribute
I recently updated my Spring boot project from 1.5.6 to 2.0.2 and having now a problem with one of my entites and their metamodel generation.
The problem occurs with a mapping of Set of Enums which was working before i switched to 2.0.2.
While…

StephanM
- 1,350
- 2
- 24
- 50
0
votes
0 answers
Source Java files are added to generated jar when using hibernate-jpamodelgen to generate JPA static meta model classes
I added the following dependency to my pom.xml so that my static meta model classes can be generated for my JPA entities. The meta model classes are generated as expected. However, I observed that the generated source files for the generated classes…

dawuzi
- 21
- 1
- 4
0
votes
0 answers
How do I get my Maven plugin to execute as part of running a JUnit test in Eclipse?
I’m using Eclipse Mars, JUnit 4.11, Hibernate 4.3.6.Final, and JPA 2.1. I have imported a Maven project into Eclipse using the m2e plugin. I have this plugin in my pom.xml file …
…

Dave
- 15,639
- 133
- 442
- 830