Posts by Aline Gonz • 173 points
8 posts
-
0
votes1
answer65
viewsQ: about crud with attachment I’m not managing to make the save action
You’re using it to run a Grail action. It is the following that the action needs to save an attachment and a title to the attachment. Someone gives me links of Ruds with attachments?
-
4
votes1
answer110
viewsQ: Criteria of the grails
Someone please tell me what this ${result[0][0]} means because they put two pair of brackets? def criteria = Person.createCriteria() def result = criteria.list { projections { max('age') min('age')…
-
0
votes1
answer83
viewsQ: It’s making a mistake when I try to do the ORM
I created a table but when I run the application more than once it gives this problem. Why does this happen? environments { development{ dataSource { dbCreate = "update" // one of 'create',…
-
0
votes2
answers100
viewsQ: I am not managing to modify the value of the Book class that is a Book
I’ve done everything and nothing of the value be modified... how do you do? I used inheritance in the physical book, the class is like this: class Livrofisico extends Livro{ public Livrofisico…
-
1
votes2
answers243
viewsQ: How can I associate 3 authors to just one book?
package crud class Start { static main(args) { Autor autor = new Autor() autor.nome = "Aline Gonzaga" autor.email ='[email protected]' autor.cpf =' 78544378654' Livro livro = new Livro(autor)…
-
3
votes2
answers72
viewsQ: I don’t understand what’s going on with this controller class, explain it to me?
I really don’t get it, if someone could draw it for me,. class DisciplinaController extends GenericController<Disciplina>{ DisciplinaController() { super(Disciplina.class) } }…
-
2
votes2
answers152
viewsQ: What is the difference between instantiation in the same variable or in 3 different variables?
Follows part one: class Pessoa{ String firstName String lastName int age def address static main(args) { def p = new Pessoa() p.setFirstName("Lars") p.lastName = "Vogel" p.address = "Homestreet 3"…
-
5
votes3
answers426
viewsQ: When should I wear the new one or not?
What happens here? Why is an instance of Date in this example: String dataFormatada = new Date().format("dd/MM/yyyy") Already in this example was not used the new: def data =…