Questions tagged [jpamodelgen]
26 questions
5
votes
1 answer
JPA metamodel fields are null
I have some JPA classes and generate metamodel through org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor. So, one of my classes is:
@Table(name = "USER")
@Entity
@NamedQueries({@NamedQuery(name = "User.byLogin", query = "select u from User u…

Everv0id
- 1,862
- 3
- 25
- 47
3
votes
1 answer
Get JAXBException with hibernate-jpamodelgen 6.1.5.Final
When i install 6.1.5.Final and run maven compile, i got this error.
java: java.lang.NoClassDefFoundError: jakarta/xml/bind/JAXBException
jakarta.xml.bind.JAXBException
java: java.lang.NoClassDefFoundError: jakarta/xml/bind/JAXBException
I had…

Chu Đức Anh
- 65
- 5
3
votes
0 answers
JPAMetaModelEntityProcessor: "Unable to determine type for property " when mapping via orm.xml
I have a JPA entity class which is configured entirely from orm.xml (no annotations). One of the properties of the entity class is a String[] which is converted to a plain String representation on the database side via a…

roadkill
- 315
- 1
- 2
- 12
3
votes
1 answer
Lombok + JPA Canonical Metamodel generation: is it possible?
I'm using Project Lombok, a (spurious) JSR 269 implementation providing useful features like the generation of getters and setters at compile time while keeping the source code clean:
@Getter @Setter private String foo;
I'd like to use another…

Andrea Ligios
- 49,480
- 26
- 114
- 243
2
votes
3 answers
Static jpa metamodel are not generated with hibernate-jpamodelgen 6.1.5.Final
I know this question has been asked several times but none of the answers worked for me.
Basically, i'm trying to generate the jpa metamodel from my entities in order to use them in specifications. However, despite running (i think, see the rebuild…

Joachim
- 51
- 1
- 6
2
votes
0 answers
Why doesn't the JPA Model Generator handle my Kotlin classes?
JPAMetaModelEntityProcessor doesn't generate metamodels for my Kotlin classes in my Spring Boot project, though it does work fine for Java classes.
I reproduced the issue starting from scratch with a simple Spring Boot initializer project.
Here's my…

Bludzee
- 2,733
- 5
- 38
- 46
2
votes
1 answer
Annotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor' not found
I am trying to implement hibernate metamodel in my spring boot application. I am getting
Annotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor' not found
above error, while building applications.
My Gradle configuration and…

Naren
- 219
- 1
- 6
- 14
2
votes
0 answers
jpa metamodel generation for external jar
I'm using hibernate-jpamodelgen (5.2.12) as maven dependency to create a metamodel for Criteria API.
All entities are in an external jar-file (which dependency is in the pom.xml) and all entities are included in the persistence.xml.
I can't…

haersch
- 23
- 1
- 4
1
vote
1 answer
How to configure IntelliJ and hibernate-jpamodelgen annotations to launch test class from the IDE
We have a git multimodules projects MAVEN on IntelliJ. We use hibernate-jpamodelgen for criteria builder API.
We have web project using maven dependency entities library which are generating annotated class in entities => target folder.
When…

cyril
- 872
- 6
- 29
1
vote
2 answers
jpamodelgen: using it with mapstruct and lombok fails silently
Here my related pom.xml snippet:
11
1.18.24
1.5.2.Final
…

Jordi
- 20,868
- 39
- 149
- 333
1
vote
1 answer
Hibernate jpamodelgen does not generate entities from another library
I am working on a spring boot project. I have entities like bellow:
class Entity extends AbstractEntity{
}
Entity.java is in my project. AbstractEntity.class comes from another library.
I was using eclipselink to generate metamodel. I had no…

Ashref Nasri
- 103
- 1
- 9
1
vote
2 answers
Hibernate JPA Modelgen not generating geometry fields
I am working on a Spring-boot, maven project where I query a MySQL database by the use of hibernate, static metamodels and (org.springframework.data.jpa.domain.)Specification's. My metamodels are autmatically generated by the Hibernate JPA 2…

Cerebres
- 343
- 3
- 16
1
vote
2 answers
Should Predicates of Spring Specification be static?
Should a Predicate of springs Specification be static or nonstatic?
The default implementation would be similar as follows:
public static Specification byCustomerName(String name) {
return new Specification() {
…

membersound
- 81,582
- 193
- 585
- 1,120
0
votes
1 answer
Jpamodelgen not generating metamodel classes on update to Quarkus 3.2.3
I just updated my project to Quarkus 3.2.2.Final but hibernate-jpamodelgen dependency is not working. Already tried multiple versions.
It is not generating metamodel classes for my project.
It works on Quarkus versions 2.x.x
pom.xml:

Gonçalo C
- 11
- 2
0
votes
0 answers
hibernate-jpamodelgen does not generate metamodels with maven
I have a Spring Boot project using maven. It uses 4 plugins for build with maven-compiler-plugin:
hibernate-jpamodelgen to generate the JPA meta-model (Entity_)
mapstruct-processor for mappers
lombok & lombok-mapstruct-binding for getters en…

Alexis Deprez
- 550
- 2
- 12