Posts by Marcelo Morgade • 36 points
2 posts
-
1
votes1
answer250
viewsA: Partial update of object / Do not update null values with JPA
The operation merge JPA will always synchronize the entire state of the object in the database. However, there is a way to accomplish what you want: Load the original database object by Id using…
-
1
votes2
answers994
viewsA: Subquery in Java HQL
TypedQuery<Estudio> query = this.manager .createQuery("select ID, CIDADE, CNPJ, DESCRICAO, EMAIL, ENDERECO, LAT, LON, NOME, TELEFONE" + "FROM (" ... You are concatenating strings to build an…