PageRenderTime 3ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/grails-app/domain/contabilidad/Servicio.groovy

http://github.com/jdmr/mateo
Groovy | 32 lines | 24 code | 8 blank | 0 comment | 0 complexity | 5dca87f693c0f055e8f5fdf9a22846d3 MD5 | raw file
  1. package contabilidad
  2. import general.Empresa
  3. class Servicio implements Serializable {
  4. String nombre
  5. String descripcion
  6. Empresa empresa
  7. Set transacciones
  8. Date dateCreated
  9. Date lastUpdated
  10. String tags
  11. static belongsTo = [Empresa]
  12. static hasMany = [transacciones: ServicioTransaccion]
  13. static constraints = {
  14. nombre maxSize:64, blank:false, unique:'empresa'
  15. descripcion maxSize:200, blank:false
  16. tags maxSize:200, nullable:true
  17. }
  18. static mapping = {
  19. table 'servicios'
  20. }
  21. String toString() {
  22. return nombre
  23. }
  24. }