eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
231 stars 72 forks source link

Define Qualifiers to Templates implementations on JNoSQL #314

Closed otaviojava closed 1 year ago

otaviojava commented 1 year ago

When I have more than one type on JNoSQL, I cannot select or define a type.

  try (SeContainer container = SeContainerInitializer.newInstance().initialize()) {
            Template template = container.select(Template.class, DatabaseQualifier.ofDocument()).get();
            Book effectiveJava = new Book("effective-java","Effective Java", "Joshua Block", "Java",
                    Year.of(2018), 3);

            template.insert(effectiveJava);

        }

Throws ambiguous exception