Hi.
The following should work for JPA annotated entities
val exporter = new GenericExporter()
exporter.setTargetFolder(new java.io.File("target/gen1-jpa"))
exporter.setSerializerClass(classOf[ScalaEntitySerializer])
exporter.setTypeMappingsClass(classOf[ScalaTypeMappings])
exporter.setEmbeddableAnnotation(classOf[Embeddable])
exporter.setEmbeddedAnnotation(classOf[Embedded])
exporter.setEntityAnnotation(classOf[Entity])
exporter.setSkipAnnotation(classOf[Transient])
exporter.setSupertypeAnnotation(classOf[MappedSuperclass])
exporter.setCreateScalaSources(true)
exporter.export(packageToBeExported)
After that you can create variables like this
val person = QPerson as "person"
I will update the Scala section of the reference docs for the next release.
Br,
TImo