Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17041

camel-jpa - Allow to configure alias for entity type class names

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.13.0
    • camel-jpa
    • None
    • Unknown

    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

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: