Posts by Thiago • 21 points
4 posts
-
0
votes3
answers2702
viewsA: Dynamically populated option select list selected with Angularjs
Try this <select ng-model="newCtrl.IdCategoria" required class="form-control" data-live-search="true" ng-options="c.Value as c.Text for c in categorias"> <option…
-
0
votes2
answers1055
viewsA: JPA spring boot custom data does not work
I found out, what I didn’t know is that I had to use JPQL. Then the query gets: @Query(value="SELECT NEW br.com.thiago.objcustom.SomaDosProdutos(e.nome, Sum(p.preco)) FROM Produto p INNER JOIN…
-
1
votes2
answers1055
viewsQ: JPA spring boot custom data does not work
public interface ProdutoRepositorio extends JpaRepository<Produto, Long> { @Query(value="SELECT new br.com.thiago.objcustom.SomaDosProdutos(e.nome, sum(preco)) FROM sitethiagodois.produto p…
-
0
votes0
answers133
viewsQ: Retrieve data from Object[]?
In the Debugger I saw that the object receives ['product', 210] Object obj = prodRepositorio.somaById(); I’d like to get the data on it but it doesn’t work cast or anything. I’ve tried to String…