Rhuan Rocha

Results 6 comments of Rhuan Rocha

Starting to work in it.

Hi @andyjefferson, **Define "add support". JPA is an API. What is your proposed API?** Yes, I know! My proposal here is to add the repository pattern as a feature to...

The Jakarta EE has the Jakarta NoSQL coming, that is based on the JNoSQL that has the repository pattern as feature. On Sat, Nov 20, 2021, 23:10 Tibor Digana ***@***.***>...

Yes, I like it too. But I think a better name for this method is getSingleResultOptional(Query query). Thus, as suggested it returns a Optional value. Em ter., 1 de dez....

In fact, the code below generates the same results as a method returning an optional. em.createQuery(queryString, Book.class).getResultStream().findFirst().orElse(null) However, I think it describes better what is being done. em.createQuery(queryString, Book.class).getOptionalResult().orElse(null). I...

Hi The query does not need the alias, as the JPA will populate the attribute according to the constructor. Remove the ' AS {attribute}' of the query. Look at the...