Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jnosql-dev] Add the findBy Id in ColumnTemplate and DocumentTemplate


The goal is a new method at ColumnTemplate and DocumentTemplate such as EntityManager in JPA.

E.g.:

<T, ID> Optional<T> find(Class<T> entityClass, ID id) throws NullPointerException, IdNotFoundException;

DocumentTemplate template = //instance;
Optional<User> user = template.find(User.class, "username");

Ref: https://docs.oracle.com/javaee/7/api/javax/persistence/EntityManager.html#find-java.lang.Class-java.lang.Object-


Ref: https://github.com/eclipse/jnosql-artemis/issues/36


--
Otávio Gonçalves de Santana

Back to the top