Hibernate ORM class scanning

41 views
Skip to first unread message

Luca Masini

unread,
Mar 19, 2019, 10:17:59 AM3/19/19
to Quarkus Development mailing list
Hi all, I'm porting a production Java EE application to Quarkus, now I'm facing a problem that can be related to scanning.

Given that the entities are shared among different Maven module, the classes are not in the Quarkus project, but in a dependency. Doing this way it seems the QuarkusScanner cannot find them.

Any hints about how to go on, above copy/paste them in Quarkus module ?

Thanks

Guillaume Smet

unread,
Mar 19, 2019, 10:46:08 AM3/19/19
to Luca Masini, Quarkus Development mailing list
Hi Luca,

So, there are different ways to do it.

You can add an empty META-INF/beans.xml file (it can be totally empty) in your dependency project or you can use the Jandex Maven plugin to create an index as part of your dependency build (see https://github.com/wildfly/jandex-maven-plugin#jandex-plugin-for-apache-maven).

--
Guillaume

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
Visit this group at https://groups.google.com/group/quarkus-dev.
For more options, visit https://groups.google.com/d/optout.

Luca Masini

unread,
Mar 19, 2019, 11:55:34 AM3/19/19
to Quarkus Development mailing list
That worked, but of course I've lost hot-reload, I need to organise the project in another way to share entities.

Any suggestions ?

Guillaume Smet

unread,
Mar 19, 2019, 11:59:31 AM3/19/19
to Luca Masini, Quarkus Development mailing list
Yes, we do not support hot reload for multi-module project yet, unfortunately.

Luca Masini

unread,
Mar 19, 2019, 12:27:47 PM3/19/19
to Guillaume Smet, Quarkus Development mailing list
Yet ? Do you plan to support it in the future ?
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************

Guillaume Smet

unread,
Mar 19, 2019, 12:31:06 PM3/19/19
to Luca Masini, Quarkus Development mailing list
I think we have plans for it but it's a bit too early to say.

Alexey Loubyansky

unread,
Mar 19, 2019, 12:34:11 PM3/19/19
to Guillaume Smet, Luca Masini, Quarkus Development mailing list

Luca Masini

unread,
Mar 19, 2019, 12:36:02 PM3/19/19
to Quarkus Development mailing list
Fantastic, I'll poll to see if it will be done in the future.

What is the "bootstrap stuff" mentioned in there ?

Alexey Loubyansky

unread,
Mar 19, 2019, 12:44:16 PM3/19/19
to Quarkus Development mailing list
Basically, it's a part that's responsible for dependency resolutions and classloading setup.
Reply all
Reply to author
Forward
0 new messages