You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/10/04 19:40:00 UTC

[jira] [Created] (CAMEL-17041) camel-jpa - Allow to configure alias for entity type class names

Claus Ibsen created CAMEL-17041:
-----------------------------------

             Summary: camel-jpa - Allow to configure alias for entity type class names
                 Key: CAMEL-17041
                 URL: https://issues.apache.org/jira/browse/CAMEL-17041
             Project: Camel
          Issue Type: New Feature
          Components: camel-jpa
            Reporter: Claus Ibsen
             Fix For: 3.x


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.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)