Does anyone know how to integrate the JPA Model Generator from Hibernate into a Scala Project with Maven
If you’re using Maven to build your Scala project, then it’s the same procedure as when you build Java. The one described here: Hibernate ORM User Guide.
Presumably you’re using a Maven plugin for Scala?
If you’re using Gradle, then look here: Hibernate ORM User Guide
If you’re using SBT, I think you can get away with just adding the dependency directly:
lazy val hibernateVersion = "Your version here...."
libraryDependencies += "org.hibernate.orm" % "hibernate-jpamodelgen" % s"$hibernateVersion"
That works for Lombok, and I think it works for other annotation processors too.
@sageserpent-open Hibernate JPA Model Generator works now it was a missing JAXB library that I have to add to the Generator
Glad you got it sorted, @anjunar.
Enjoy winter hibernation over the festive season!