Description
Today you have to use the full FQN class name, so if you have com.foo.bar.Company class, then you have to use that long name.
In Java you can then use string concat such as
to("jpa:" + Company.class.getName() + "..."
But it would be nice if we can configure alias on the component, so you can do
to("jpa:Company?..."
Where Company is the alias name.
Since the classes have JPA annotations such as @Entity then camel-quarkus could have a build step that scans the project and find all these classes and can automatic do the alias by the shorthand class name.
Attachments
Issue Links
- links to