Questions tagged as 'gorm'

1
answer

Problems updating record data with dataBinding in Grails

I have the following domains: class Cliente { static belongsTo = [empresa: Empresa] static constraints = { } } class Empresa { /* aqui temos alguns atributos*/ } When creating a new business class record I can do good:...
asked by 13.08.2014 / 22:58
0
answers

Login with GORM with return interspersed between ID and 0

Well, I'm learning to program in the GO language, and I made an api with a login system. func Authenticate(db *gorm.DB, auth models.UserAuthForm) uint { hasher.Write([]byte(auth.Password)) pass_hash := hex.EncodeToString(hasher.Sum(nil...
asked by 02.11.2018 / 16:27
1
answer

Remove bank data with GRAILS AND GORM

I am learning a bit of GRAILS and I have the following problem I can display the information of some users usually registered when I try to delete them I can not and I do not receive any error, follow the code def delete() { Usuario...
asked by 30.06.2014 / 03:10
0
answers

Error on running Grails Unit Test - version 3.3.5

No GORM implementations configured. Ensure GORM has been initialized correctly. Code above: package br.com .promotion.selection.service import grails.testing.services.ServiceUnitTest import spock.lang.Specification import br.com .com...
asked by 01.08.2018 / 19:49
1
answer

It is giving error 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', 'create-drop', 'update', 'validate', ''...
asked by 30.12.2015 / 00:27