Posts by leonardo freitas oliveira • 87 points
5 posts
-
3
votes1
answer532
viewsQ: How to render a partials structure from another directory in Rails?
1) Structure of views Assuming I have two sets of views, the set A and the set B. Both sets are similar possessing the view index.html.erb and the partials _index.html.erb, _new.html.erb,…
-
1
votes1
answer287
viewsQ: Why is the translation path not being found?
Assuming my yml file is arranged that way: pt-BR: alert_system: schedules: teste: 'ss' every: 'Todo Dia:' each: 'A Cada:' each_day: 'A Cada #{dias} Dias' on: 'Na data:' When calling from within a…
-
0
votes1
answer254
viewsQ: How to do a random search using JPQL script in JPA2
The idea is basically to search for an X number of entities persisted randomly, and these entities cannot be repeated. The question is, is there any way to perform this type of search by creating…
-
2
votes1
answer63
viewsQ: Class relationship by collections in JPA2
In a bean that has a Onetomany connection, with others, through a Hashmap that annotations should be used?. @Entity class Rodada{ public HashMap<Pergunta,Resposta> perguntas;…
-
2
votes1
answer1981
viewsQ: How to customize the line of a Listview according to the value in Arrayadapter
Assuming I have an object called Item, and it has the text, id and validation property, in which case, text is a string, id is an integer, and validation is a boolean value. class Item { private int…